Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Jan 2007
    Posts
    88
    Plugin Contributions
    0

    Default Log In To See Newest Products, but see all others if not

    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?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Log In To See Newest Products, but see all others if not

    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!

  3. #3
    Join Date
    Jan 2007
    Posts
    88
    Plugin Contributions
    0

    Default Re: Log In To See Newest Products, but see all others if not

    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?

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Log In To See Newest Products, but see all others if not

    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!

  5. #5
    Join Date
    Jan 2007
    Posts
    88
    Plugin Contributions
    0

    Default Re: Log In To See Newest Products, but see all others if not

    Quote Originally Posted by Ajeh View Post
    You would need to customize the:

    New Products link in the Categories sidebox
    What's New Sidebox
    New Products Centerbox
    New Products Listing
    Sorry to ask, but where would I find the files for those?

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Log In To See Newest Products, but see all others if not

    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!

  7. #7
    Join Date
    Jan 2007
    Posts
    88
    Plugin Contributions
    0

    Default Re: Log In To See Newest Products, but see all others if not

    Thank you I will start to work on this and see what I can do.

  8. #8
    Join Date
    Jan 2007
    Posts
    88
    Plugin Contributions
    0

    Default Re: Log In To See Newest Products, but see all others if not

    I am actually getting very lost with this. There are a lot of "NEW"s.

  9. #9
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Log In To See Newest Products, but see all others if not

    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!

  10. #10
    Join Date
    Jan 2007
    Posts
    88
    Plugin Contributions
    0

    Default Re: Log In To See Newest Products, but see all others if not

    Would creating a plugin be simpler?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 1
    Last Post: 3 Feb 2015, 10:14 AM
  2. Replies: 0
    Last Post: 4 Nov 2013, 05:24 PM
  3. Can not log in to Admin Page or See Site
    By mgodwin in forum General Questions
    Replies: 8
    Last Post: 24 May 2011, 03:01 PM
  4. how can i see all products in admin?
    By uncentaur in forum Customization from the Admin
    Replies: 2
    Last Post: 24 Jul 2008, 05:38 PM
  5. Remove "would you like to see our newest...?
    By benjames in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 13 Sep 2006, 06:57 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR