Does anyone know how I can get the Specials and Bestsellers sideboxes to show in the right column on the product info page?
Does anyone know how I can get the Specials and Bestsellers sideboxes to show in the right column on the product info page?
Using your templates and overrides, you want to copy:
/includes/modules/sideboxes/specials.php
to your overrides directory:
/includes/modules/sideboxes/your_template_dir/specials.php
In the code you will see:
This tells it NOT to show when there is a $_GET['products_id']Code:if (isset($_GET['products_id'])) { $show_specials= false; } else { $show_specials= true; }
Change the code to read:
For the best_sellers, you need to copy:Code:if (isset($_GET['products_id'])) { $show_specials= true; } else { $show_specials= true; }
/includes/modules/sideboxes/best_sellers.php
to your overrides directory:
/includes/modules/sideboxes/your_template_dir/best_sellers.php
This is designed to only show when the $_GET['products_id'] is set and when the customer is setup for global notifications ...
The easiest way to change that is to change the code:
to read:Code:// test if box should display $show_best_sellers= false;
Code:// test if box should display $show_best_sellers= 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!]
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!
Why does that code exist ? I mean :
Why shouldnt specials be shown on a products_info page ? What were the reasons to Not show it?Code:// test if box should display $show_specials= false; if (isset($_GET['products_id'])) { $show_specials= false; } else { $show_specials= true; }
No, seriously...