Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How do I disable certain columns in for certain pages?

How do I disable certain columns in for certain pages?

Locked

Views: 1,310

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
12 Feb 2008, 3:03 PM
#1
francocauter avatar

francocauter

Zen Follower

Join Date:
Jun 2007
Location:
Milton Keynes UK
Posts:
153
Plugin Contributions:
0

How do I disable certain columns in for certain pages?

Hi Guys
Is there a way to disable left or right column for specific pages or categories?
My template is Gloss Black though
I would appreciate your help
Thanks

13 Feb 2008, 1:21 PM
#2
francocauter avatar

francocauter

Zen Follower

Join Date:
Jun 2007
Location:
Milton Keynes UK
Posts:
153
Plugin Contributions:
0

Re: How do I disable certain columns in for certain pages?

Can I ask for your help?
I am trying to disable the right column for some specific document products pages, I followed the note in the tpl_main_page.php file but I can only get to disable the column for the whole category with $cPath statement is there the same kind of statement for the "product page"?
Thanks for your patients.
Kind Regards
Franco

13 Feb 2008, 2:44 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: How do I disable certain columns in for certain pages?

Similar to using $cPath for categories, you can use the following for products:

(int)$_GET['products_id']
13 Feb 2008, 4:00 PM
#4
francocauter avatar

francocauter

Zen Follower

Join Date:
Jun 2007
Location:
Milton Keynes UK
Posts:
153
Plugin Contributions:
0

Re: How do I disable certain columns in for certain pages?

DrByte:

Similar to using $cPath for categories, you can use the following for products:

(int)$_GET['products_id']



Thanks DrByte,
the string I am using is this:

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

how would I use your suggestion?
Regards
Franco
13 Feb 2008, 4:32 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: How do I disable certain columns in for certain pages?

You could try this:

  if (in_array((int)$_GET['products_id'] ,explode('14','82')) ) {
    $flag_disable_right = true;
  }