[ Index ]
 

Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/includes/modules/sideboxes/ -> shopping_cart.php (source)

   1  <?php
   2  /**

   3   * shopping_cart sidebox - displays contents of customer's shopping cart.  Also shows GV balance, if any.

   4   *

   5   * @package templateSystem

   6   * @copyright Copyright 2003-2005 Zen Cart Development Team

   7   * @copyright Portions Copyright 2003 osCommerce

   8   * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0

   9   * @version $Id: shopping_cart.php 3505 2006-04-24 04:00:05Z drbyte $

  10   */
  11  
  12    switch (true) {
  13      case (SHOW_SHOPPING_CART_BOX_STATUS == '0'):
  14        $show_shopping_cart_box = true;
  15        break;
  16      case (SHOW_SHOPPING_CART_BOX_STATUS == '1'):
  17        if ($_SESSION['cart']->count_contents() > 0 || (isset($_SESSION['customer_id']) && zen_user_has_gv_account($_SESSION['customer_id']) > 0)) {
  18          $show_shopping_cart_box = true;
  19        } else {
  20          $show_shopping_cart_box = false;
  21        }
  22        break;
  23      case (SHOW_SHOPPING_CART_BOX_STATUS == '2'):
  24        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) ) {
  25          $show_shopping_cart_box = true;
  26        } else {
  27          $show_shopping_cart_box = false;
  28        }
  29        break;
  30      }
  31  
  32  
  33    if ($show_shopping_cart_box == true) {
  34      require($template->get_template_dir('tpl_shopping_cart.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_shopping_cart.php');
  35      $title =  BOX_HEADING_SHOPPING_CART;
  36      $title_link = false;
  37      $title_link = FILENAME_SHOPPING_CART;
  38  
  39      require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
  40    }
  41  ?>


Généré le : Mon Nov 26 16:45:43 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics