Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Remove or Disable Left Column on Login and Checkout Pages

Remove or Disable Left Column on Login and Checkout Pages

Locked

Views: 9,567

Results 21 to 25 of 25
This thread is locked. New replies are disabled.
9 Apr 2009, 9:28 AM
#21
need_help avatar

need_help

Zen Follower

Join Date:
Feb 2009
Posts:
205
Plugin Contributions:
0

Remove or Disable Left Column on Login and Checkout Pages

limelites:

I'm pretty sure this should work then:

if ($current_category_id == 1 or $current_category_id == 4 or $current_category_id == 2 or $current_category_id == 5 or $current_category_id == 7 or $current_category_id == 99 or $current_category_id == 119 or $current_category_id == 121 or $current_category_id == 128 or $current_category_id == 122 or $current_category_id == 123 or $current_category_id == 127 or $current_category_id == 120 or $current_category_id == 100 or $current_category_id == 101) {

$flag_disable_left = true;

> 
> Basically, as soon as you browse to any of the sub categories above, your left sidebox would disable.

Yes that works like a charm.

You have been a really great help as i wouldn't have been able to figure that one out even with reading the forums help sections.

Thanks very much.
9 Apr 2009, 10:00 AM
#22
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Remove or Disable Left Column on Login and Checkout Pages

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.

21 Sep 2009, 7:20 PM
#23
jansuh_nl avatar

jansuh_nl

New Zenner

Join Date:
Aug 2008
Posts:
30
Plugin Contributions:
0

Re: Remove or Disable Left Column on Login and Checkout Pages

Very pleased with the ability to turn off left and right sideboxes during the account creation and checkout.

Thanks :clap:

22 Sep 2009, 5:41 PM
#24
jlazzarino avatar

jlazzarino

New Zenner

Join Date:
Aug 2009
Posts:
9
Plugin Contributions:
0

Re: Remove or Disable Left Column on Login and Checkout Pages

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

22 Sep 2009, 9:57 PM
#25
jlazzarino avatar

jlazzarino

New Zenner

Join Date:
Aug 2009
Posts:
9
Plugin Contributions:
0

Re: Remove or Disable Left Column on Login and Checkout Pages

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....:oops: 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....