Source for file LC_Page_FrontParts_Bloc_Cart.php
Documentation is available at LC_Page_FrontParts_Bloc_Cart.php
* This file is part of EC-CUBE
* Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
* http://www.lockon.co.jp/
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once(CLASS_PATH .
"pages/frontparts/bloc/LC_Page_FrontParts_Bloc.php");
* @author LOCKON CO.,LTD.
* @version $Id:LC_Page_FrontParts_Bloc_Cart.php 15532 2007-08-31 14:39:46Z nanasess $
if (count($_SESSION[$objCart->key]) >
0){
$arrCartList =
$objCart->getCartList();
$arrAllProductID =
$objCart->getAllProductID();
// 商品が1つ以上入っている場合には商品名称を取得
if (count($arrAllProductID) >
0){
$sql =
"SELECT name FROM dtb_products WHERE product_id IN ( ?";
$arrVal =
array($arrAllProductID[0]);
for($i =
1 ; $i <
count($arrAllProductID) ; $i++
){
$arrProduct_name =
$objQuery->getAll($sql, $arrVal);
foreach($arrProduct_name as $key =>
$val){
$arrCartList[$key]['product_name'] =
$val['name'];
$arrInfo =
$objSiteInfo->data;
$ProductsTotal =
$objCart->getAllProductsTotal($arrInfo);
$TotalQuantity =
$objCart->getTotalQuantity();
$arrCartList[0]['ProductsTotal'] =
$ProductsTotal;
$arrCartList[0]['TotalQuantity'] =
$TotalQuantity;
$deliv_free =
$arrInfo['free_rule'] -
$ProductsTotal;
$arrCartList[0]['free_rule'] =
$arrInfo['free_rule'];
$arrCartList[0]['deliv_free'] =
$deliv_free;
$this->arrCartList =
$arrCartList;
$objSubView->assignobj($this);
Documentation generated on Tue, 28 Apr 2009 18:12:13 +0900 by phpDocumentor 1.4.2