Again, I was searching for this but could not find it.
What I want is for people to have to log in to see the newest products, but otherwise they can see it all.
How would I go about doing this?
Again, I was searching for this but could not find it.
What I want is for people to have to log in to see the newest products, but otherwise they can see it all.
How would I go about doing this?
You would need to customize the:
New Products link in the Categories sidebox
What's New Sidebox
New Products Centerbox
New Products Listing
To not show when the customer is not logged in ...
Then you would need to add a filter or exclude to the where statements on all the other functions of the site to prevent New Products from showing in Featured, Specials, Product Listing, Product _info on Prev/Next etc. as well ...
After you have customized all of the code everywhere ... this should work for you ...
In other words, it would require a heck of a lot of code to prevent guests from seeing new products ...
It can be done, but it is a lot of work ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
So what kind of code would I have to put in?
Such as what defines a logged in person?
And just to be sure where would I find the exact files I need?
Finally (for this post anyway) would this be able to be toggled on and off, or should I just not worry about that?
Find every select statement and add something to block the new products by date when the customer is not logged in ...
IF statements can be used on the existing New Product information as those already are set for selecting the New Products and just need to be blocked when the $_SESSION['customer_id'] == 0
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Look in the:
/includes/modules
/includes/modules/pages
/includes/modules/sideboxes
Anything with the word NEW in it would need code to be altered ... using your templates and overrides directories ...
Then you can start narrowing down all of the other locations by moving through the site and looking at the URL as it contains part of the filename where you can use that to find the files to customize for each page you are displaying ...
This will let you locate the select statements that are used and you can customize it so that when the customer is logged in, it uses the current statement, and when the customer is not logged in it would use a customized select statement to exclude the new products ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Thank you I will start to work on this and see what I can do.
I am actually getting very lost with this. There are a lot of "NEW"s.
It can be confusing ... there are a lot of files to customize to prevent people from seeing just the new products ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Would creating a plugin be simpler?
Bookmarks