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??![]()
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??![]()
Product Listing or Product Details?
Please do not PM for support issues: a private solution doesn't benefit the community.
Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.
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.
Product details. I'm still having big problems with removing the right column on product details pages, 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...
Try something like this:You might use $_GET['products_id'] if $products_id doesn't work.PHP Code:
if ($current_page_base == 'product_info' and $products_id == '180') {
$flag_disable_right = true;
}
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.
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;
}
First post in this thread gives link, with details i.e.
https://www.zen-cart.com/tutorials/i...hp?article=233
Oh true I must have missed that... Thanks for letting me know!
Nick
Bookmarks