Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2006
    Posts
    10
    Plugin Contributions
    0

    Default 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.

    Code:
    <?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 http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: cart_summary.php  $
     */
      $item_separator = ($box_id == '') ? '&nbsp;&nbsp;' : '<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

  2. #2
    Join Date
    May 2004
    Posts
    766
    Plugin Contributions
    0

    Default 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

 

 

Similar Threads

  1. Shopping Cart Summary Delete Item Button
    By mattk251285 in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 7 Mar 2016, 10:34 PM
  2. v151 Display Shopping Cart Summary In Header Issues
    By jackolive in forum General Questions
    Replies: 2
    Last Post: 19 Dec 2012, 10:48 AM
  3. Shopping Cart Summary Sidebox - Product Characters
    By mattk251285 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 6 Dec 2011, 10:56 AM
  4. shopping cart line summary won't turn off
    By mezx in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 7 Apr 2008, 11:30 AM
  5. cart summary displayed in sidebox
    By marslizard in forum Basic Configuration
    Replies: 3
    Last Post: 8 Dec 2006, 05:44 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR