Turn them off via admin, tools, layout controller.
Images....use Banner Box or install blank sidebox
or logo sidebox mod/s from Free Software Addons...
Link top left of this page
Turn them off via admin, tools, layout controller.
Images....use Banner Box or install blank sidebox
or logo sidebox mod/s from Free Software Addons...
Link top left of this page
Scroll down to foot of this page....previous threads asking
similar i.e.
http://www.zen-cart.com/forum/showthread.php?t=52941
Using your templates and overrides, customize the best_sellers.php sidebox with the code in red:
Customize the whats_new.php sidebox with the code in red:Code:// bof: turn off best sellers on home page if ($this_is_home_page) { $show_best_sellers= false; } // eof: turn off best sellers on home page if ($show_best_sellers == true) {
and then lower in the code:Code:// bof: turn off whats_new on home page if ($this_is_home_page) { $show_whats_new= false; } else { $show_whats_new= true; } // eof: turn off whats_new on home page // display limits
Code:if ($show_whats_new && $random_whats_new_sidebox_product->RecordCount() > 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!]
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!
I did as you said, but they are still on? The directory I altered the files in was:
mysite.com/mytemplate/includes/modules/sideboxes/mytemplate/
is this correct?
If I add the code you metioned further down it shuts everything off on all the pages...$show_whats_new && $random_whats_new_sidebox_product->RecordCount() > 0 ) {
If you just do the Best Sellers sidebox ... does that work correctly?
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!
I did as you said, but the "whats_new" is still on? The directory I altered the files in was:
mysite.com/mytemplate/includes/modules/sideboxes/mytemplate/
is this correct?
If I add the code you mentioned further down in the "whats_new" file it shuts everything off on all the pages...$show_whats_new && $random_whats_new_sidebox_product->RecordCount() > 0 ) {
Hi Ajeh, thanks for your code suggestion, I also wanted to hide the bestsellers sidebox on my home page and the solution above worked fine. However, I just realized that I would prefer to have it shown only during product listing. So the customer easily can see the most sold products in the current category the customer is vewing. So I want to hide the bestsellers sidebox on for example "index.php?main_page=logoff", "index.php?main_page=reviews", "index.php?main_page=specials" etc... would love to see a code example where I can add the pages where I don't want the sidebox to show. Could use this for other sideboxes as well.
Thanks!
Best regards
Peter
You could use:
Code:// bof: turn off best sellers except for listing if ($_GET['main_page'] != 'index') { $show_best_sellers= false; } // eof: turn off best sellers except for listing
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!