Forums / Basic Configuration / Specials sidebox not showing at Specials page

Specials sidebox not showing at Specials page

Locked

Started by juandbb on 13 Mar 2009, 9:18 AM · Views: 2,714

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
13 Mar 2009, 9:18 AM
#1
juandbb avatar

juandbb

New Zenner

Join Date:
Jan 2009
Posts:
26
Plugin Contributions:
0

Specials sidebox not showing at Specials page

Hello,

I have one left sidebox which is Specials.

I also have a full page called Specials

I would like to show at the Specials page all my left sideboxes except the Specials one.

How can I do it please?

Thank you in advance for your help

13 Mar 2009, 4:13 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Specials sidebox not showing at Specials page

You can customize the specials.php sidebox by copying to your templates and overrides ...

The original code reads:

  if (isset($_GET['products_id'])) {
    $show_specials= false;
  } else {
    $show_specials= true;
  }

which means not to show if there is a products_id ...

Changing the IF to read:

  if (isset($_GET['products_id']) or $_GET['main_page'] == 'specials') {
    $show_specials= false;
  } else {
    $show_specials= true;
  }

Now it will not show on the pages where there is a products_id defined or the specials page ...

If you want it even if the products_id is displayed then change it to read:

  if ($_GET['main_page'] == 'specials') {
    $show_specials= false;
  } else {
    $show_specials= true;
  }

and it will not show only when you are on the specials page itself ...

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!

15 Mar 2009, 3:59 PM
#3
juandbb avatar

juandbb

New Zenner

Join Date:
Jan 2009
Posts:
26
Plugin Contributions:
0

Re: Specials sidebox not showing at Specials page

Thanks a lot!