How to turn off colum or sideboxex on a single product listing page
This tutorial:
https://www.zen-cart.com/tutorials/i...hp?article=233
describes how to turn off side boxes on EZ-pages, category listings and so forth, but how can I turn off a colum or sidebox on a single product listing page only?? :mellow:
Re: How to turn off colum or sideboxex on a single product listing page
Product Listing or Product Details?
Re: How to turn off colum or sideboxex on a single product listing page
Quote:
Originally Posted by
Kim
Product Listing or Product Details?
eh I'm not sure what the difference is. For example on this page only:
http://www.usconverters.com/index.ph...roducts_id=180
I would like to remove the right side colum.
Re: How to turn off colum or sideboxex on a single product listing page
Quote:
Originally Posted by
Kim
Product Listing or Product Details?
Product details. I'm still having big problems with removing the right column on product details pages :frusty: , anybody have an idea?
In includes\templates\classic\common I tried this:
if (in_array($products_id,explode(",",'180')) {
$flag_disable_right = true;
but that didn't do the job :(
Any help is much appreciated...
Re: How to turn off colum or sideboxex on a single product listing page
Try something like this:
PHP Code:
if ($current_page_base == 'product_info' and $products_id == '180') {
$flag_disable_right = true;
}
You might use $_GET['products_id'] if $products_id doesn't work.
Re: How to turn off colum or sideboxex on a single product listing page
Quote:
Originally Posted by
gjh42
Try something like this:
PHP Code:
if ($current_page_base == 'product_info' and $products_id == '180') {
$flag_disable_right = true;
}
You might use $_GET['products_id'] if $products_id doesn't work.
Thanks so much! $_GET['products_id'] is working!
Just as a side note, how would I disable more than one product id in the same line?
For example:
if ($current_page_base == 'product_info' and $_GET['products_id'] == '180,182,183') {
$flag_disable_right = true;
}
is not working.
Re: How to turn off colum or sideboxex on a single product listing page
That's where you would use the explode() function.
PHP Code:
if ($current_page_base == 'product_info' and in_array($_GET['products_id'],explode(",",'180,182,183')) {
$flag_disable_right = true;
}
Re: How to turn off colum or sideboxex on a single product listing page
Quote:
Originally Posted by
DML73
In includes\templates\classic\common I tried this:
Which file was this in? Cheers
Re: How to turn off colum or sideboxex on a single product listing page
Quote:
Originally Posted by
fightthefourwalls
Which file was this in? Cheers
First post in this thread gives link, with details i.e.
https://www.zen-cart.com/tutorials/i...hp?article=233
Re: How to turn off colum or sideboxex on a single product listing page
Oh true I must have missed that... Thanks for letting me know!
Nick