Source for file LC_Page_FrontParts_Bloc_NaviHeader.php
Documentation is available at LC_Page_FrontParts_Bloc_NaviHeader.php
* This file is part of EC-CUBE
* Copyright(c) 2000-2011 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_EX_REALDIR . 'page_extends/frontparts/bloc/LC_Page_FrontParts_Bloc_Login_Ex.php';
* @author LOCKON CO.,LTD.
$masterData = new SC_DB_MasterData_Ex();
$this->arrProductType = $masterData->getMasterData("mtb_product_type"); //商品種類を取得
$objCart = new SC_CartSession_Ex();
$cartKeys = $objCart->getKeys();
$arrInfo = SC_Helper_DB_Ex::sfGetBasisData();
$this->freeRule = $arrInfo['free_rule'];
$this->arrCartList = $this->lfGetCartData($objCart, $arrInfo, $cartKeys);
* @param SC_CartSession $objCart カートセッション管理クラス
* @param Array $arrInfo 基本情報配列
* @param Array $cartKeys 商品種類配列
* @return array $arrCartList カートデータ配列
foreach ($cartKeys as $key) {
$cartList[$key]['productTypeName'] = $this->arrProductType[$key]; //商品種類名
$cartList[$key]['totalInctax'] = $objCart->getAllProductsTotal($key); //合計金額
$cartList[$key]['delivFree'] = $arrInfo['free_rule'] - $cartList[$key]['totalInctax']; // 送料無料までの金額を計算
$cartList[$key]['totalTax'] = $objCart->getAllProductsTax($key); //消費税合計
$cartList[$key]['quantity'] = $objCart->getTotalQuantity($key); //商品数量合計
$cartList[$key]['productTypeId'] = $key; // 商品種別ID
Documentation generated on Fri, 24 Feb 2012 14:02:01 +0900 by Seasoft
|