Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2006
    Location
    Tokyo, Melbourne, Shanghai
    Posts
    102
    Plugin Contributions
    0

    Default Showcase only when not logged in.

    Dear Zenners,

    I've been a searchin' high and low but there doesnt seem to be anyone that's posted about this. I would like to have only a showcase available if a user is not logged in. When they log in the entire categories with prices will be available.

    is it possible and if you can give me a few pointers please.

    Thank you in advance.

    Arpeggio.

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

    Default Re: Showcase only when not logged in.

    There are settings in Customer Details for this ...

    Customer Shop Status - View Shop and Prices
    Customer must be approved to shop
    0= Not required
    1= Must login to browse
    2= May browse but no prices unless logged in
    3= Showroom Only
    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!]
    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
    Dec 2006
    Location
    Tokyo, Melbourne, Shanghai
    Posts
    102
    Plugin Contributions
    0

    Default Re: Showcase only when not logged in.

    sou da ne. arigato Ajeh oba sama. for talking some sense into me. I was trying to achieve something a little different than what the admin settings could acheive (i think!) but ya right I was startin" to do mental backflips and cartwheels!! Now I've changed back now and my life is easier!! Am still curious about why it didn't work but.... Any ideas? xie xie ni.

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

    Default Re: Showcase only when not logged in.

    I haven't a clue what you tried nor what precisely "didn't work" ... could you elaborate a bit?
    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!]
    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
    Dec 2006
    Location
    Tokyo, Melbourne, Shanghai
    Posts
    102
    Plugin Contributions
    0

    Default Re: Showcase only when not logged in.

    Konichiwa Ajeh obaa sama. Whoops I thought I had posted some IF statements here but it was another forum thread (http://www.zen-cart.com/forum/showthread.php?t=57161)
    and that was what i was referring to when I stated "I'm still curious why it didn't work". Sorry about that. but if you could explain i would be very interested to know why it didnt work. arigato.

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

    Default Re: Showcase only when not logged in.

    You try to make things to complicated ...

    In the Categories sidebox if you don't want that showing unless logged in ... note this includes the All, Specials, New and Featured Link ...

    You could use an IF on the sidebox itself ...

    Find this line in the categories.php sidebox ...
    PHP Code:
        if ($check_categories->RecordCount() > 0) { 
    Change to read:

    PHP Code:
        if ($_SESSION['customer_id'] > && $check_categories->RecordCount() > 0) { 
    Now, you will see the categories sidebox with links if customer is logged in ... otherwise just see the box only with the links to All, Specials, New and Featured ...

    Or, use the same concept to turn off the whole box ...
    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!]
    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
    Dec 2006
    Location
    Tokyo, Melbourne, Shanghai
    Posts
    102
    Plugin Contributions
    0

    Default Re: Showcase only when not logged in.

    Wow! Ajeh nenai no?!! ohenji arigato. (not sleeping?!! thank you for your reply) Ohio ni nanji ka na? (i wonder what time it is in Ohio?)
    Well yes, complicated but I think complication is the sign of the beginner at their limit!! Certainly Me!!
    With the above I actually got rid of the whole category box!! with the IF statement. then i was just working on eliminating the Category Box Title. But anyway I gave away the idea and am now just not showing prices as per your original suggestion. I can see your advice working though. xie xie. Now I'm working on another seeming challenge: http://www.zen-cart.com/forum/showth...439#post325439

    feel free to shed some light on possibilties. Thank you very much Ajeh sama.

 

 

Similar Threads

  1. I want to show only certain menu items when not logged in
    By gbruner in forum General Questions
    Replies: 0
    Last Post: 27 Oct 2010, 04:20 AM
  2. Replies: 18
    Last Post: 29 Sep 2009, 02:37 PM
  3. Favicon appears only when logged in.
    By saporta in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 5 Dec 2007, 11:49 AM

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