Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Turn off side boxes during checkout?

Turn off side boxes during checkout?

Locked

Views: 1,850

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
23 May 2009, 9:00 PM
#1
makoshark avatar

makoshark

Zen Follower

Join Date:
Jun 2007
Location:
Laurinburg, NC
Posts:
165
Plugin Contributions:
0

Turn off side boxes during checkout?

Is there an option to turn off side boxes during check out? Also move the cart contents to the top of the center box header? I would also need a cancel button during check out that would bring the customer back to the index main page?
I want to have a clean page with no distractions during check out. I found this code but I am not sure how to implement it?

if (in_array($current_page_base,explode(",",'login,checkout_shipping,checkout_payment,checkout_confirmation')) && in_array($column_left_display->fields['layout_box_name'],explode(",",'search_header.php,categories.php,manufacturers.php,whats_new.php,featured.php,specials.php,currencies.php')) ) { 
// don't do stuff 
} else {  

Thanks James

23 May 2009, 9:14 PM
#3
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Turn off side boxes during checkout?

Yes... in a nutshell, that is the line to use, and it already exists in:

includes/templates/template_default/common

Look around lines 41 to 44

...So all you need do is add the pages where you don't want the columns to display.

Then you duplicate the lines of code, and change:
$flag_disable_right = true;
to
$flag_disable_left = true;

This will cancel out BOTH side columns when the stated pages are engaged.

You should then save the edited file to:

includes/templates/your_template/common

23 May 2009, 10:12 PM
#4
makoshark avatar

makoshark

Zen Follower

Join Date:
Jun 2007
Location:
Laurinburg, NC
Posts:
165
Plugin Contributions:
0

Re: Turn off side boxes during checkout?

Thanks. I have got it working and am learning the syntax a little, of PHP. I am Super Happy All I need now is a cancel button, got any ideas on that? or an article I missed? when searching I get so many responses I get lost :smartalec:

24 May 2009, 4:38 PM
#5
makoshark avatar

makoshark

Zen Follower

Join Date:
Jun 2007
Location:
Laurinburg, NC
Posts:
165
Plugin Contributions:
0

Re: Turn off side boxes during checkout?

Thought it may be help full to post my resolution check out pages. What I have now is the three steps to the check out pages have no side boxes to distract the custoner.

the code needs to be added to this path :
/home /www /shop.nilandsplace.com /camp /includes /templates /NilandCamp /common
Were NilandCampis my template override, also referred as custom is Zen Cart articles.
In the file tpl_main_page.php add this code:

 
 if (in_array($current_page_base,explode(",",'checkout_shipping,checkout_payment,checkout_confirmation,checkout_shipping_address'))  ) {
     $flag_disable_left = true; $flag_disable_right = true;
  }

just above this code:

  $header_template = 'tpl_header.php';
  $footer_template = 'tpl_footer.php';
  $left_column_file = 'column_left.php';
  $right_column_file = 'column_right.php';
  $body_id = ($this_is_main_page) ? 'indexHome' : str_replace('_', '', $_GET['main_page']);
?>

Hope this helps
James Niland
http://shop.nilandsplace.com/camp/
Please don't create an account to try it out

26 May 2009, 3:16 PM
#6
schoolboy avatar

schoolboy

Totally Zenned

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

Re: Turn off side boxes during checkout?

Makoshark:

All I need now is a cancel button

... to cancel what?

27 May 2009, 1:21 AM
#7
makoshark avatar

makoshark

Zen Follower

Join Date:
Jun 2007
Location:
Laurinburg, NC
Posts:
165
Plugin Contributions:
0

Re: Turn off side boxes during checkout?

I need a cancel button on the three check out pages?

If any one wants to see my mod's...

If anyone wants to see this in action I have set up a test account. So please do not create accounts for testing

You can use this to test. User: [email protected] and the password is test1234
Here is my website click Nilands Place CampsiteHave Fun makoshark AKA James

15 Jun 2009, 9:09 AM
#8
nadiausa avatar

nadiausa

New Zenner

Join Date:
Sep 2008
Location:
Los Angeles, CA
Posts:
82
Plugin Contributions:
0

Re: Turn off side boxes during checkout?

FYI,

If you want to turn off the side boxes for ez pages you have to do the same thing but use this script instead:

if (in_array($ezpage_id,explode(",",'6')) ) {
$flag_disable_left = true; $flag_disable_right = true;
}

NOTE: the number six is the number of your easy page. Just change that number to what ever number ez page you want to have the side boxes turn off.

Regards,
Nadia