Forums / Templates, Stylesheets, Page Layout / Shopping Cart Summary Sidebox

Shopping Cart Summary Sidebox

Locked

Views: 2,399

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
6 Apr 2007, 3:15 PM
#1
mrmrsg avatar

mrmrsg

New Zenner

Join Date:
Aug 2006
Posts:
7
Plugin Contributions:
0

Shopping Cart Summary Sidebox

I have installed the mod Shopping Cart Summary Sidebox. I have added graphics and the like to it. When I go to my shopping cart it shows the sidebox and the same in the shopping cart pane. I want the sidebox to dispaly but not the same thing in my shopping cart. I have tried multiple things in admin/layout and by changing the true/false statments but cant seem to get it right. Webside is www.inhomedirect.com
I cannot get it to stop displaying it in the shopping cart. You can add something to my cart and see what is happening.

Here is the code from the cart_summary.php file that I'm sure is the key to solving this.

<?php
/**
 * cart_summary ("sidebox") - this sidebox can be used to display a summary of the customer's cart content in header or sidebox
 *
 * @package sideboxes
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license [URL]http://www.zen-cart.com/license/2_0.txt[/URL] GNU Public License V2.0
 * @version $Id: cart_summary.php  $
 */
  $item_separator = ($box_id == '') ? '  ' : '<br />';
  $totalsDisplay = '';
  switch (true) {
    case (SHOW_TOTALS_IN_CART == '1'):
      $totalsDisplay = TEXT_TOTAL_ITEMS . $_SESSION['cart']->count_contents() . $item_separator . TEXT_TOTAL_WEIGHT . $_SESSION['cart']->show_weight() . TEXT_PRODUCT_WEIGHT_UNIT . $item_separator . TEXT_TOTAL_AMOUNT . $currencies->format($_SESSION['cart']->show_total());
      break;
    case (SHOW_TOTALS_IN_CART == '2'):
      $totalsDisplay = TEXT_TOTAL_ITEMS . $_SESSION['cart']->count_contents() . ($_SESSION['cart']->show_weight() > 0 ? $item_separator . TEXT_TOTAL_WEIGHT . $_SESSION['cart']->show_weight() . TEXT_PRODUCT_WEIGHT_UNIT : '') . $item_separator . TEXT_TOTAL_AMOUNT . $currencies->format($_SESSION['cart']->show_total());
      break;
    case (SHOW_TOTALS_IN_CART == '3'):
      $totalsDisplay = CART_IMAGE_TOP . TEXT_TOTAL_ITEMS . $_SESSION['cart']->count_contents() . $item_separator . TEXT_TOTAL_AMOUNT . $currencies->format($_SESSION['cart']->show_total()) . $item_separator . TEXT_MIDDLE_CART . $item_separator . CART_IMAGE_CC;
      break;
  }
  $content = $totalsDisplay;
/////////////////////////
// Determine whether displaying as sidebox should be disabled, based on Admin settings under Admin->Configuration->Stock
  $show_shopping_cart_box = true;
  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 ( ( ($_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;
  }
///////////////////////
require($template->get_template_dir('tpl_cart_summary.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_cart_summary.php');
  if ($box_id !='' && $show_shopping_cart_box == true) {
    $title = '<label>' . BOX_HEADING_CART_CONTENTS . '</label>';
    $title_link = false;
    require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
  } else {
    if ($show_shopping_cart_box == true)
   require($template->get_template_dir('tpl_box_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_box_header.php');
  }
?>

Thanks in advance for they help all of you provide

26 Apr 2007, 6:59 AM
#2
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: Shopping Cart Summary Sidebox

Speaking of the shopping cart summary sidebox mod by the Zencart team, in the downloads section it says works on versions 1.30-1.36. Does that mean it does not work with version 1.37? Or has the information not been updated and it does work with v1.37?

thank you,

betty