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:
Views: 1,423
New Zenner
Is there any way to disable the left sidebox column from the product listing page only ?
Thanks in advance :smile:
Black Belt
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
New Zenner
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?
Black Belt
'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
Deceased
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.
New Zenner
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.
Black Belt
On product listing page only I want to disable the left side box.
See my post #4
Zen-Venom Get Bitten
New Zenner
Yes but how do you disable a certain sidebox eg - whats_new
Tell staff why this post should be reviewed.