[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
Zen Cart 源代码 shopping_cart.php

Zen Cart 源代码 shopping_cart.php




下载文件

文件名: shopping_cart.php
文件类型: PHP文件
文件大小: 1.68 KiB
MD5: a094f71ee66aec9b973a08d7c36cc445

shopping_cart.php - 关闭高亮
  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-2007 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 7437 2007-11-16 21:33:16Z 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 ( ( (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) ) {
  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. ?>


cron