Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How to disable the right column from product listing page?

How to disable the right column from product listing page?

Locked

Views: 2,684

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
23 Mar 2008, 9:47 AM
#1
paranoia avatar

paranoia

New Zenner

Join Date:
Feb 2008
Posts:
46
Plugin Contributions:
0

How to disable the right column from product listing page?

I am edited the

/includes/templates/YOURTEMPLATE/common/tpl_main_page.php

  if ($current_page!='product_listing' || (int)$cPath>0) {  
    $flag_disable_left = true;
  } 

or

if ($this_is_produce_listing_page) {
   $flag_disable_left = true;
}

but didn't work,can anybody help ???

23 Mar 2008, 12:24 PM
#2
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: How to disable the right column from product listing page?

Try

if ($current_page_base == 'product_info') {
  $flag_disable_right = true;
} else {
  $flag_disable_right = false;
}
23 Mar 2008, 2:17 PM
#3
paranoia avatar

paranoia

New Zenner

Join Date:
Feb 2008
Posts:
46
Plugin Contributions:
0

Re: How to disable the right column from product listing page?

misty,thanks for your fast reply

but your code only work for disable the right column on "product info " page

but i need disable right column for "produck listing"page

:unsure:

any other ppl got some more idea??

23 Mar 2008, 2:39 PM
#4
kobra avatar

kobra

Black Belt

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

Re: How to disable the right column from product listing page?

Try this entry

if ($current_page_base == 'index' and $cPath > '0' ) {
$flag_disable_right = true;
} 
23 Mar 2008, 3:20 PM
#5
paranoia avatar

paranoia

New Zenner

Join Date:
Feb 2008
Posts:
46
Plugin Contributions:
0

Re: How to disable the right column from product listing page?

Kobra,thanks your reply

your code same like

  if ($current_page!='index' || (int)$cPath>0) {  
    $flag_disable_right = true;
  }  

That's code closed right column on all page without index main page,i used it before,but i wanna only closed right column with "produck listing"
so it still didn't work for me

however thank you.

23 Mar 2008, 5:09 PM
#6
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: How to disable the right column from product listing page?

why do you change his code? it's almost correct:

if ($current_page_base == 'index' and isset($_GET['cPath']) {
$flag_disable_right = true;
}
24 Mar 2008, 5:40 AM
#7
paranoia avatar

paranoia

New Zenner

Join Date:
Feb 2008
Posts:
46
Plugin Contributions:
0

Re: How to disable the right column from product listing page?

sry,

now i use his code

if ($current_page_base == 'index' and $cPath > '0' ) {
$flag_disable_right = true;
}

that's almost correct:clap:

24 Mar 2008, 7:49 AM
#8
paranoia avatar

paranoia

New Zenner

Join Date:
Feb 2008
Posts:
46
Plugin Contributions:
0

Re: How to disable the right column from product listing page?

thanks everybody!!!