If this is your first visit, check our documentation. To post, register or login.
Forums / Addon Sideboxes / turn sidebox addons on and off, depending on if its category or product page

turn sidebox addons on and off, depending on if its category or product page

Started by noyloza on 16 Nov 2012, 9:09 PM · Views: 1,280

Results 1 to 2 of 2
16 Nov 2012, 9:09 PM
#1
noyloza avatar

noyloza

New Zenner

Join Date:
Nov 2012
Posts:
66
Plugin Contributions:
0

turn sidebox addons on and off, depending on if its category or product page

I am trying to figure out how to turn something on and off depending on whether its a category product page, or a product information display page? Is this possible?

I want to turn everything except the categories off for this page: http://o-pd.com/zencart/index.php?main_page=products_new

I want to turn the categories off and everything else on for this page: http://o-pd.com/zencart/index.php?main_page=product_info&cPath=38&products_id=54

Can somebody help me? I savy with php so I just need to know what to add where, I'm guessing a conditional somewhere in there, I just don't know the syntax for identifying it as a category page, or product info page...

thanks

16 Nov 2012, 9:31 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: turn sidebox addons on and off, depending on if its category or product page

If your template monster template does not interfere

For your products_new page
Create in your template a folder named "products_new" at
includes/templates/theme640/products_new

In it place a copy of tpl_main_page.php

Read the comments at the top of the file and edit it to display what you want - save and load to the above location

This will not work for your specific cat/product page issue

Zen-Venom Get Bitten