Forums / Templates, Stylesheets, Page Layout / Excluding sideboxes from product list pages

Excluding sideboxes from product list pages

Locked

Views: 1,391

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
10 Jul 2008, 11:20 AM
#1
ctcentralinfo avatar

ctcentralinfo

Totally Zenned

Join Date:
Apr 2005
Posts:
853
Plugin Contributions:
0

Excluding sideboxes from product list pages

I am trying to figure out how to exclude sideboxes from the product list pages:

http://www.cooltechcentral.com/electronics-112/electronic-dictionaries-299/

I tried adding product_listing, categories_index, and categories_row_index to the tpl_main_page.php file and had no effect. I originally used index but it excluded side boxes on other pages I wanted it on including the home page. At the very least I would like the right sideboxes to show up on the home page.

Rich People scream, Wealthy people whisper

https://www.cooltechcentral.com

10 Jul 2008, 11:32 AM
#2
canopy avatar

canopy

Totally Zenned

Join Date:
Oct 2006
Posts:
625
Plugin Contributions:
0

Re: Excluding sideboxes from product list pages

Try this FAQ which disables the side column on a page-specific basis.

Goh Koon Hoek, author of "e-Start Your Web Store with Zen Cart".
Printed book: www.lulu.com/content/10576284
Electronic book and Errata: www.cucumbermedia.com/store

10 Jul 2008, 12:17 PM
#3
ctcentralinfo avatar

ctcentralinfo

Totally Zenned

Join Date:
Apr 2005
Posts:
853
Plugin Contributions:
0

Re: Excluding sideboxes from product list pages

canopy:

Try this FAQ which disables the side column on a page-specific basis.

I am referencing that FAQ that is why I mentioned both tpl_main_page.php as well as the files I was trying to exclude.

Rich People scream, Wealthy people whisper

https://www.cooltechcentral.com

10 Jul 2008, 2:26 PM
#5
ctcentralinfo avatar

ctcentralinfo

Totally Zenned

Join Date:
Apr 2005
Posts:
853
Plugin Contributions:
0

Re: Excluding sideboxes from product list pages

I am not even sure I am using the right name for the section I am trying to block the sideboxes on. Is it product list category list, Cpath or something else?

Rich People scream, Wealthy people whisper

https://www.cooltechcentral.com

10 Jul 2008, 2:55 PM
#6
ctcentralinfo avatar

ctcentralinfo

Totally Zenned

Join Date:
Apr 2005
Posts:
853
Plugin Contributions:
0

Re: Excluding sideboxes from product list pages

I added this to the best_sellers.php from the includes/modules/sideboxes/MY_TEMPLATE/
and at the bottom of the php file right before the last ?>

$show_categories= false;

if (isset($_GET['products_id']) and zen_products_id_valid($_GET['products_id'])) {
if (!($_GET['main_page']==FILENAME_REVIEWS)) $show_review = true;
}
if ($show_review == true) {
$categories_status = " and p2c.categories = > 0 ";}

but the bestseller sidebox still shows up:

http://www.cooltechcentral.com/electronics-112/accessories-1/

What am I doing wrong?

Rich People scream, Wealthy people whisper

https://www.cooltechcentral.com

10 Jul 2008, 4:01 PM
#8
ctcentralinfo avatar

ctcentralinfo

Totally Zenned

Join Date:
Apr 2005
Posts:
853
Plugin Contributions:
0

Re: Excluding sideboxes from product list pages

Anyone have any suggestions?

Rich People scream, Wealthy people whisper

https://www.cooltechcentral.com

10 Jul 2008, 9:51 PM
#9
ctcentralinfo avatar

ctcentralinfo

Totally Zenned

Join Date:
Apr 2005
Posts:
853
Plugin Contributions:
0

Re: Excluding sideboxes from product list pages

Is it categories or Product listing? Again the reason I am asking is because I am not sure I am using the terminology right.

Rich People scream, Wealthy people whisper

https://www.cooltechcentral.com

10 Jul 2008, 11:56 PM
#10
ctcentralinfo avatar

ctcentralinfo

Totally Zenned

Join Date:
Apr 2005
Posts:
853
Plugin Contributions:
0

Re: Excluding sideboxes from product list pages

Sorry folks, I guess I should have paid more attention to the link canopy sent me because the answer to my problem was there all along.

Rich People scream, Wealthy people whisper

https://www.cooltechcentral.com