Forums / Setting Up Categories, Products, Attributes / disabling of left sidebox

disabling of left sidebox

Locked

Views: 1,423

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
14 Sep 2009, 4:21 AM
#1
ajaysingh avatar

ajaysingh

New Zenner

Join Date:
Jul 2009
Posts:
18
Plugin Contributions:
0

disabling of left sidebox

Is there any way to disable the left sidebox column from the product listing page only ?

Thanks in advance :smile:

14 Sep 2009, 7:37 AM
#2
kobra avatar

kobra

Black Belt

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

Re: disabling of left sidebox

Have a look at the comments in the file - tpl_main_page.php
And the tutorial - I searched for "disable"
https://www.zen-cart.com/tutorials/index.php?article=233

Zen-Venom Get Bitten

14 Sep 2009, 8:23 AM
#3
ajaysingh avatar

ajaysingh

New Zenner

Join Date:
Jul 2009
Posts:
18
Plugin Contributions:
0

Re: disabling of left sidebox

yes I've already read this article but there is no information to disable the left sidebox column on product listing page. Means which variable should I pass in that array for product listing page?

14 Sep 2009, 11:38 AM
#4
kobra avatar

kobra

Black Belt

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

Re: disabling of left sidebox

'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces'

  if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) {
     $flag_disable_left = true;
  }

Create your list for your listing pages...
check in your browser address bar and note the cpath as you load your listing pages they will be like "cPath=1_4"
It is the number(s) that you need

Zen-Venom Get Bitten

16 Sep 2009, 4:16 PM
#5
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: disabling of left sidebox

These settings will turn off the left sideboxes on the product page(s) and

if (in_array($current_page_base,explode(",",'product_info')) ) {
$flag_disable_left = true;
}

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

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

17 Sep 2009, 2:46 PM
#6
ajaysingh avatar

ajaysingh

New Zenner

Join Date:
Jul 2009
Posts:
18
Plugin Contributions:
0

Re: disabling of left sidebox

No these setting is not working. this setting is disabling the left sidebox when I am viewing the categories and sub categories.

I've set the "Skip 1-prod Categories" to false so product info page will never come.

so when I click on a category name link it will redirected to me to product listing page or sub categories page. On product listing page only I want to disable the left side box.

17 Sep 2009, 3:27 PM
#7
kobra avatar

kobra

Black Belt

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

Re: disabling of left sidebox

On product listing page only I want to disable the left side box.
See my post #4

Zen-Venom Get Bitten

19 Oct 2009, 11:02 AM
#8
bikeforce avatar

bikeforce

New Zenner

Join Date:
Sep 2009
Posts:
73
Plugin Contributions:
0

Re: disabling of left sidebox

Yes but how do you disable a certain sidebox eg - whats_new