Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2010
    Posts
    7
    Plugin Contributions
    0

    Default how to remove "Specials"? and show quick re-order at the same time when login?

    HI,
    My problem is that how to realize that after I login, the quick re-order sidebox appears but the Special sidebox disappears.

    I know how to make the quick re-order sidebox appear but I don't know how to remove another sidebox (e.g. Specials) at the same time.

    Can somebody give me some tips? Do I just do something in the admin and realize that or do I have to change the template code?

    I just consider that probably I can use "switch...case" in the tpl_index_default.php but I am not sure if it can work and BTW I don't know where should I put. idea?

    Thanks

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

    Default Re: how to remove "Specials" and show quick re-order at the same time when login

    Edit the specials.php sidebox and add the code in red above the code in black:
    Code:
    
    // bof: turn off specials sidebox when customer logs in
      if ($_SESSION['customer_id'] > 0) {
        $show_specials= false;
      }
    // eof: turn off specials sidebox when customer logs in
    
      if ($show_specials == true) {
    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
    Nov 2010
    Posts
    7
    Plugin Contributions
    0

    Default Re: how to remove "Specials" and show quick re-order at the same time when login

    Hi Ajeh:
    Thank you so much.
    That is exactly what I want.
    you see, it not only does solve this problem but also gives me a hint that next time if I want to remove any sidebox after login I can use this code to it .

    Thanks again

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

    Default Re: how to remove "Specials" and show quick re-order at the same time when login

    You are most welcome ... thanks for the update that this worked for you ...
    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!

 

 

Similar Threads

  1. How to remove "contact us", "My account" , and "view cart"?
    By thestampnomad in forum Basic Configuration
    Replies: 2
    Last Post: 13 Aug 2010, 07:55 PM
  2. Possible to set the "also bought" and "specials" to nofollow?
    By shrimp-gumbo-mmmhhh in forum General Questions
    Replies: 2
    Last Post: 10 May 2010, 01:40 PM
  3. How to add additional link beside the "home" and "Login" page above logo?
    By corditreasures in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 8 Apr 2010, 03:54 PM
  4. On Specials - How can I just display "20% off" or "save $x.xx", but not the price
    By candylotus in forum Setting Up Specials and SaleMaker
    Replies: 0
    Last Post: 24 Apr 2008, 12:44 AM

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