Source for file LC_Page_Shopping_Confirm.php
Documentation is available at LC_Page_Shopping_Confirm.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/LC_Page_Ex.php';
* @author LOCKON CO.,LTD.
* @version $Id: LC_Page_Shopping_Confirm.php 21113 2011-08-03 10:25:08Z 468 $
$this->tpl_title = "ご入力内容のご確認";
$this->arrPref = $masterData->getMasterData('mtb_pref');
$this->arrSex = $masterData->getMasterData("mtb_sex");
$this->arrMAILMAGATYPE = $masterData->getMasterData("mtb_mail_magazine_type");
$this->arrReminder = $masterData->getMasterData("mtb_reminder");
$this->arrDeliv = SC_Helper_DB_Ex::sfGetIDValueList("dtb_deliv", "deliv_id", "service_name");
$this->httpCacheControl('nocache');
$objCartSess = new SC_CartSession_Ex();
$objSiteSess = new SC_SiteSession_Ex();
$objCustomer = new SC_Customer_Ex();
$objQuery = new SC_Query_Ex();
$objDb = new SC_Helper_DB_Ex();
$objPurchase = new SC_Helper_Purchase_Ex();
$this->is_multiple = $objPurchase->isMultiple();
// 前のページで正しく登録手続きが行われた記録があるか判定
if (!$objSiteSess->isPrePage()) {
SC_Utils_Ex::sfDispSiteError(PAGE_ERROR, $objSiteSess);
// ユーザユニークIDの取得と購入状態の正当性をチェック
$this->tpl_uniqid = $objSiteSess->getUniqId();
$objPurchase->verifyChangeCart($this->tpl_uniqid, $objCartSess);
$this->cartKey = $objCartSess->getKey();
$this->tpl_message = $objCartSess->checkProducts($this->cartKey);
if (!SC_Utils_Ex::isBlank($this->tpl_message)) {
SC_Response_Ex::sendRedirect(CART_URLPATH);
$this->arrShipping = $objPurchase->getShippingTemp($this->is_multiple);
$this->arrCartItems = $objCartSess->getCartList($this->cartKey);
$this->tpl_total_inctax[$this->cartKey] = $objCartSess->getAllProductsTotal($this->cartKey);
$this->tpl_total_tax[$this->cartKey] = $objCartSess->getAllProductsTax($this->cartKey);
$this->tpl_total_point[$this->cartKey] = $objCartSess->getAllProductsPoint($this->cartKey);
$arrOrderTemp = $objPurchase->getOrderTemp($this->tpl_uniqid);
$arrCalcResults = $objCartSess->calculate($this->cartKey, $objCustomer,
$arrOrderTemp['use_point'],
$objPurchase->getShippingPref($this->is_multiple),
$arrOrderTemp['discount'],
$arrOrderTemp['deliv_id']);
$this->arrForm = array_merge($arrOrderTemp, $arrCalcResults);
if($objCustomer->isLoginSuccess(true)) {
$this->tpl_user_point = $objCustomer->getValue('point');
$this->use_module = $this->useModule($this->arrForm['payment_id']);
switch($this->getMode()) {
$objSiteSess->setRegistFlag();
SC_Response_Ex::sendRedirect(SHOPPING_PAYMENT_URLPATH);
$this->arrForm["order_id"] = $objQuery->nextval("dtb_order_order_id");
$_SESSION["order_id"] = $this->arrForm['order_id'];
$objPurchase->saveOrderTemp($this->tpl_uniqid, $this->arrForm,
$objSiteSess->setRegistFlag();
$objPurchase->completeOrder(ORDER_PENDING);
SC_Response_Ex::sendRedirect(SHOPPING_MODULE_URLPATH);
$objPurchase->completeOrder(ORDER_NEW);
$objPurchase->sendOrderMail($this->arrForm["order_id"]);
SC_Response_Ex::sendRedirect(SHOPPING_COMPLETE_URLPATH);
* dtb_payment.memo03 に値が入っている場合は決済モジュールと見なす.
* @param integer $payment_id 支払い方法ID
* @return boolean 決済モジュールを使用する支払い方法の場合 true
$objQuery = & SC_Query_Ex::getSingletonInstance();
$memo03 = $objQuery->get('memo03', 'dtb_payment', 'payment_id = ?',
return !SC_Utils_Ex::isBlank($memo03);
Documentation generated on Fri, 24 Feb 2012 14:02:17 +0900 by Seasoft
|