Forums / Templates, Stylesheets, Page Layout / Turn Right Hand column off on most pages

Turn Right Hand column off on most pages

Locked

Views: 1,270

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
2 Aug 2009, 6:26 AM
#1
aussiesapphire avatar

aussiesapphire

Zen Follower

Join Date:
Apr 2006
Posts:
114
Plugin Contributions:
0

Turn Right Hand column off on most pages

I have a question about turning off the sideboxes on the right hand column for all category and product listing pages.

I have read the tutorial here:
https://www.zen-cart.com/tutorials/index.php?article=233

it helps but because not clued up on php, havent got it quite right. There are some sort of relevant posts in the forum but most people want to do the opposite to what I want.

WHAT I WANT TO DO: when people are actually shopping, I want the layout really clean with everything in the right hand column turned off. But if they are just at the home page or viewing an information page, I want these boxes to be visible.

I have the tpl_main_page.ph copied to an override folder and the following edits:

if ($current_page_base == 'product_info' and $products_id >= '') {
$flag_disable_right = true;

this code takes out the sideboxes on the product listing and product information pages. This is GOOD.

if (in_array($cPath,explode(",",'')) ) {
$flag_disable_right = true;

This is the bit I'm having trouble with - I can add in the individual category numbers to turn the boxes off for a single category (going by the tutorial example) but not sure what to use to turn them off for ALL categories.

If I cant work this out, I can revert back to my original plan of turning off the right hand column globally which is 95% there but hoping to tweak it a bit. Sorry for such a noob question but hopefully someone can point me in the right direction.

Site is set to maintenance but can make it visible if required.

cheers
Leah

2 Aug 2009, 6:30 AM
#2
aussiesapphire avatar

aussiesapphire

Zen Follower

Join Date:
Apr 2006
Posts:
114
Plugin Contributions:
0

Re: Turn Right Hand column off on most pages

sorry - should have mentioned that I am running new install of 1.3.8a with only minor edits of the default template and these mods (Column Layout, COWOA, Dual Pricing and Zones Tables).

cheers
Leah

2 Aug 2009, 7:07 AM
#3
aussiesapphire avatar

aussiesapphire

Zen Follower

Join Date:
Apr 2006
Posts:
114
Plugin Contributions:
0

Re: Turn Right Hand column off on most pages

Disregard - think I worked it out. Didnt realise that I had to enter each category number in - was trying to get them all treated the same way but not possible I think.

Maybe a better way of doing it but the pages are displaying the way I want for now.

have used this code:

if (in_array($cPath,explode(",",'1_6,1_7,1_8')) ) {
$flag_disable_right = true;

and will add more categories as I set them up.

cheers
Leah