Shopping Cart Page

Views: 623

Results 1 to 3 of 3
18 Jul 2011, 12:36 AM
#1
autoace avatar

autoace

Totally Zenned

Join Date:
Jun 2009
Posts:
618
Plugin Contributions:
0

Shopping Cart Page

To display the shopping cart box on my right column, ONLY on the shopping cart page, I have made the following code edits:

In includes/modules/sideboxes/my_template/shopping_cart.php, I have the following code edit:

case (SHOW_SHOPPING_CART_BOX_STATUS == '0'):
//$show_shopping_cart_box = true;
if ($this_is_shopping_cart) {
$show_shopping_cart_box = true;
} else {
$show_shopping_cart_box = false;
}

In my admin under Configuration > Layout Settings > Shopping Cart Box Status set to '0'.

And in my tpl_main_page.php,

if (in_array($current_page_base,explode(",",'contact_us,shopping_cart')) ) {
$flag_disable_right = false;
$flag_disable_left = true;//added code
}

But yet, ONLY the center column displays. Can anyone show me what I'm doing wrong.

Thank you,
autoace

18 Jul 2011, 2:31 AM
#2
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Shopping Cart Page

autoace:

To display the shopping cart box on my right column, ONLY on the shopping cart page, I have made the following code edits:

In includes/modules/sideboxes/my_template/shopping_cart.php, I have the following code edit:

case (SHOW_SHOPPING_CART_BOX_STATUS == '0'):
//$show_shopping_cart_box = true;
if ($this_is_shopping_cart) {
$show_shopping_cart_box = true;
} else {
$show_shopping_cart_box = false;
}

In my admin under Configuration > Layout Settings > Shopping Cart Box Status set to '0'.

And in my tpl_main_page.php,

if (in_array($current_page_base,explode(",",'contact_us,shopping_cart')) ) {
$flag_disable_right = false;
$flag_disable_left = true;//added code
}

But yet, ONLY the center column displays. Can anyone show me what I'm doing wrong.

you'll want to change this:

case (SHOW_SHOPPING_CART_BOX_STATUS == '0'):
      //$show_shopping_cart_box = true;
	  if ($this_is_shopping_cart) {
		$show_shopping_cart_box = true;
		} else {
		$show_shopping_cart_box = false;
	  }

to this:

case (SHOW_SHOPPING_CART_BOX_STATUS == '0'):
      //$show_shopping_cart_box = true;
	  if ($current_page_base == 'shopping_cart') {
		$show_shopping_cart_box = true;
		} else {
		$show_shopping_cart_box = false;
	  }

But you'll still have the problem of the sidebox not showing because you are turning off both the left and right columns by using this:

if (in_array($current_page_base,explode(",",'contact_us,shopping_cart')) ) {
    $flag_disable_right = false;
	$flag_disable_left = true;//added code
  }

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

19 Jul 2011, 8:43 PM
#3
autoace avatar

autoace

Totally Zenned

Join Date:
Jun 2009
Posts:
618
Plugin Contributions:
0

Re: Shopping Cart Page

Thank you, it worked! On your second point I realized that as I was making the post, so I revised the code, thanks again.

Thank you,
autoace