Zen Cart Logo
Forums / Addon Sideboxes / Turn off side-boxes in checkout

Turn off side-boxes in checkout

Views: 2,668

Results 1 to 4 of 4
20 Oct 2010, 5:10 PM
#1
eflat avatar

eflat

New Zenner

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

Turn off side-boxes in checkout

Was wondering...is there a way in admin to turn off the sideboxes just during the checkout process? The idea is to keep customers from getting distracted and on-track with the purchase. I'm sure I can modify the templates but would rather not if I can avoid it.

20 Oct 2010, 5:50 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Turn off side-boxes in checkout

This takes a very small mod to /includes/templates/your_template/common/tpl_main_page.php.
Find this at the top of the filephp // the following IF statement can be duplicated/modified as needed to set additional flags if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) { $flag_disable_right = true; } and change to```php
// the following IF statement can be duplicated/modified as needed to set additional flags
if (in_array($current_page_base,explode(",",'checkout_shipping,checkout_payment,checkout_success')) ) {
$flag_disable_left = true;
$flag_disable_right = true;
}

Look at the page names in your address bar to verify that their names are checkout_shipping,checkout_payment,checkout_success; alter the explode content if necessary.
21 Oct 2010, 12:22 AM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Turn off side-boxes in checkout

eflat:

Was wondering...is there a way in admin to turn off the sideboxes just during the checkout process? The idea is to keep customers from getting distracted and on-track with the purchase. I'm sure I can modify the templates but would rather not if I can avoid it.

Glen's suggestion is the most appropriate method, and is simple to undertake.

I tend to agree with your idea of removing "distractions" from the checkout pages, so this is a sensible move.

20 years a Zencart User

23 Aug 2011, 12:42 AM
#4
billyboyle avatar

billyboyle

Zen Follower

Join Date:
Jul 2011
Location:
Glasgow, Scotland
Posts:
115
Plugin Contributions:
1

Re: Turn off side-boxes in checkout

Thank you for this advice and information. It was just what I needed. :clap:

Today I am trying something different. Read the install.txt Read the FAQ Read the forum for answers; Then Install the mod. ;-)
AML Candles