Forums / Basic Configuration / Turn Off All sideboxes except shopping cart sidebox during checkout pages

Turn Off All sideboxes except shopping cart sidebox during checkout pages

Locked

Started by dharma on 9 Feb 2007, 11:56 PM · Views: 38,234

Results 21 to 25 of 25
This thread is locked. New replies are disabled.
11 Feb 2007, 4:18 PM
#21
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Turn Off All sideboxes except shopping cart sidebox during checkout pages

Under the right column IF add a left column IF and don't forget to specify which pages also:

// the following IF statement can be duplicated/modified as needed to set additional flags
  if ($_SESSION['cart']->count_contents() == 0 || in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) {
    $flag_disable_left = true;
  }

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

12 Feb 2007, 5:11 PM
#22
dharma avatar

dharma

Totally Zenned

Join Date:
Nov 2006
Posts:
505
Plugin Contributions:
0

Re: Turn Off All sideboxes except shopping cart sidebox during checkout pages

This Code provided by Ajeh, disables the left sidebox column when the sidebox cart is empty, I added in a few other pages to clean up the other login pages..(create_account,create_account_success)

// the following IF statement can be duplicated/modified as needed to set additional flags 
  if ($_SESSION['cart']->count_contents() == 0 && in_array($current_page_base,explode(",",'login')) ) { 
    $flag_disable_left = true; 
  }  

Thanks Again Ajeh!
:cheers:

Zencart 1.3.9h - PHP 5.2.13 - My SQL 5.0.84 - Apache 1.3.41

20 Apr 2007, 2:07 AM
#23
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Re: Turn Off All sideboxes except shopping cart sidebox during checkout pages

Ajeh:

Yep did it real wrong ... delete that override ...

Take 2 ...

This is where that fits in:

while (!$column_left_display->EOF and $box_cnt < 100) {
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 show anything
//echo 'base ' . $current_page_base . ' vs ' . $column_left_display->fields['layout_box_name'] . '<br>';
} else {
$box_cnt++;

> 
> Then just before the MoveNext:
> ```php
  } // file_exists
 } // skip sidebox on pages
  $column_left_display->MoveNext();

Having a quantity discount module the total on step 2 of 3 differs from shopping cart [more] right side sidebox.
Ok, went through this step with the following and switched left to right but I only want shopping cart.php to explode:

} // file_exists
} // skip sidebox on pages
$column_right_display->while (!$column_right_display->EOF and $box_cnt < 100) {
if (in_array($current_page_base,explode(",",'login,checkout_shipping,checkout_payment,checkout_confirmation')) && in_array($column_right_display->fields['layout_box_name'],explode(",",'shopping_cart.php')) ) {
// don't show anything
//echo 'base ' . $current_page_base . ' vs ' . $column_right_display->fields['layout_box_name'] . '<br>';
} else {
$box_cnt++;
MoveNext();
} // while column_right
$box_id = '';
?>

What is wrong???

Mark,

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

20 Apr 2007, 2:49 AM
#24
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Re: Turn Off All sideboxes except shopping cart sidebox during checkout pages

Finally dug the answer out of a previous post..

http://www.zen-cart.com/forum/showthread.php?t=18624&highlight=turn+sidebox+checkout
It worked perfect! :clap:

Mark,

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

16 Nov 2009, 3:20 PM
#25
kburner avatar

kburner

Totally Zenned

Join Date:
Apr 2008
Location:
Flint, Michigan
Posts:
684
Plugin Contributions:
0

Re: Turn Off All sideboxes except shopping cart sidebox during checkout pages

dharma:

This Code provided by Ajeh, disables the left sidebox column when the sidebox cart is empty, I added in a few other pages to clean up the other login pages..(create_account,create_account_success)

// the following IF statement can be duplicated/modified as needed to set additional flags
if ($_SESSION['cart']->count_contents() == 0 && in_array($current_page_base,explode(",",'login')) ) {
$flag_disable_left = true;
}

> 
> Thanks Again Ajeh!
> :cheers:

I am a little confused with what files to modify from this post. I want to turn off all my sideboxes when customer is as shopping cart page. I have COWOA and FEC loaded and sideboxes are already gone from billing and checkout pages. I would like shopping cart page to have NO sideboxes also. I do not have shopping cart sidebox activated. 

Can you tell me which file to change? code? 

Thanks, Kim

kburner
Burner Christian Bookstore
https://www.burnerbooks.com