I'm glad to have helped, that's what this forum/community is about. If you're stuck with something, just open a new thread and someone will usually help.
Very pleased with the ability to turn off left and right sideboxes during the account creation and checkout.
Thanks
thank you very much for the post....I was/am having the same issue where I'm trying to hide the left column on some pages only.....I'm using zencart ver: 1.3.8a
At this point, I've got the left column hidden for the Home page using this code in MYTEMPLATE/common/tpl_main_page.php
// remove left column from the home page
if ($this_is_home_page) {
$flag_disable_left = true;
}
I also added the following code posted in this thread to remove the left column from all other pages.... it works for login,account,create_amount.....but the left column still appears on Checkout pages, contact us, and about us???
if (in_array($current_page_base,explode(",",'login,checkout,account,create_account, contact_us,about_us')) ) {
$flag_disable_left = true;
}
if (in_array($current_page_base,explode(",",'login,account')) ) {
$flag_disable_footer = true;
}
if (in_array($current_page_base,explode(",",'login')) ) {
$flag_disable_header = true;
}
if ($current_page_base == 'shopping_cart' && $_SESSION['cart']->count_contents() > 0 ) {
$flag_disable_left = true;
}
Any thoughts why this code would not work for the above mentioned pages?
Also, does anyone know where I can find a reference for how to determine the proper page names to be used as arguments? i.e. about_us as opposed to AboutUs
thanks in advance.
jon
UPDATE: Ok, I've figured out why the code didn't work on contact us, about us etc... it's because they are EZ-Pages.... That said, it makes it easier to supress the column....just in case someone else comes across the same issue, here's how it was resolved:
In the ZC Admin panel.... click on Configuration > EZ Page Setings > EZ-Pages Pages to disable left-column
then you need to list the page ids of the pages that you do NOT want to display the normal "left" column (of sideboxes) for your site.
Simply list page ID numbers separated by commas with no spaces. Page ID numbers can be obtained from the EZ-Pages screen under Admin->Tools. ie: 21 or leave blank.
1 down, 1 to go... I still can't figure out why the checkout page still shows the left column.... I'll create a new post for this....
Bookmarks