Totally Zenned
- Join Date:
- Feb 2009
- Location:
- UK
- Posts:
- 1,326
- Plugin Contributions:
- 0
Shopping Cart Sidebox in both columns
Ok, I've looked at the FAQs and posts to try and resolve this issue. But can't see what is probably obvious.
With v1.50rc2 on local server:
I have the shopping cart sidebox turned on in the left column on most pages.
The left column is turned off on product info pages. On these pages I would like to show the shopping cart side box in the right column (which is turned on).
Played around with:
tpl_main_page.php, the beginning of which is:
if (in_array($current_page_base,explode(",",'product_info,shopping_cart')) ) {
$flag_disable_left = true;
}
if (in_array($current_page_base,explode(",",'shopping_cart')) ) {
$flag_disable_right = true;
}
if ($this_is_home_page) {
$flag_disable_right = true;
}
and shopping_cart.php in \modules\sideboxes\my-template, the code of which is:
switch (true) {
case (SHOW_SHOPPING_CART_BOX_STATUS == '0'):
$show_shopping_cart_box = true;
break;
case (SHOW_SHOPPING_CART_BOX_STATUS == '1'):
if ($_SESSION['cart']->count_contents() > 0 || (isset($_SESSION['customer_id']) && zen_user_has_gv_account($_SESSION['customer_id']) > 0)) {
$show_shopping_cart_box = true;
} else {
$show_shopping_cart_box = false;
}
break;
case (SHOW_SHOPPING_CART_BOX_STATUS == '2'):
if ( ( (isset($_SESSION['cart']) && $_SESSION['cart']->count_contents() > 0) || (isset($_SESSION['customer_id']) && zen_user_has_gv_account($_SESSION['customer_id']) > 0) ) && ($_GET['main_page'] != FILENAME_SHOPPING_CART) ) {
$show_shopping_cart_box = true;
} else {
$show_shopping_cart_box = false;
}
break;
}
if ($show_shopping_cart_box == true) {
require($template->get_template_dir('tpl_shopping_cart.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_shopping_cart.php');
$title = BOX_HEADING_SHOPPING_CART;
$title_link = false;
$title_link = FILENAME_SHOPPING_CART;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
I'm pretty sure I need to edit the latter, as an FAQ suggests - but nothing I do seems to work.
Thanks
(off out for a couple of hours)
Simon