/** * Page を初期化する. * * @return void */ public function init() { parent::init(); $this->tpl_mainpage = 'customer/edit.tpl'; $this->tpl_mainno = 'customer'; $this->tpl_subno = 'index'; $this->tpl_pager = 'pager.tpl'; $this->tpl_maintitle = '会員管理'; $this->tpl_subtitle = '会員登録'; $masterData = new SC_DB_MasterData_Ex(); $this->arrPref = $masterData->getMasterData('mtb_pref'); $this->arrCountry = $masterData->getMasterData('mtb_country'); $this->arrJob = $masterData->getMasterData('mtb_job'); $this->arrSex = $masterData->getMasterData('mtb_sex'); $this->arrReminder = $masterData->getMasterData('mtb_reminder'); $this->arrStatus = $masterData->getMasterData('mtb_customer_status'); $this->arrMailMagazineType = $masterData->getMasterData('mtb_mail_magazine_type'); // 日付プルダウン設定 $objDate = new SC_Date_Ex(BIRTH_YEAR); $this->arrYear = $objDate->getYear(); $this->arrMonth = $objDate->getMonth(); $this->arrDay = $objDate->getDay(); // 支払い方法種別 $this->arrPayment = SC_Helper_Payment_Ex::getIDValueList(); }
/** * Page を初期化する. * * @return void */ public function init() { parent::init(); $this->tpl_mainpage = 'order/edit.tpl'; $this->tpl_mainno = 'order'; $this->tpl_maintitle = '受注管理'; $this->tpl_subtitle = '受注登録'; $masterData = new SC_DB_MasterData_Ex(); $this->arrPref = $masterData->getMasterData('mtb_pref'); $this->arrCountry = $masterData->getMasterData('mtb_country'); $this->arrORDERSTATUS = $masterData->getMasterData('mtb_order_status'); $this->arrDeviceType = $masterData->getMasterData('mtb_device_type'); $this->arrSex = $masterData->getMasterData('mtb_sex'); $this->arrJob = $masterData->getMasterData('mtb_job'); $objShippingDate = new SC_Date_Ex(RELEASE_YEAR); $this->arrYearShippingDate = $objShippingDate->getYear('', date('Y'), ''); $this->arrMonthShippingDate = $objShippingDate->getMonth(true); $this->arrDayShippingDate = $objShippingDate->getDay(true); $objBirthDate = new SC_Date_Ex(BIRTH_YEAR, date('Y', strtotime('now'))); $this->arrBirthYear = $objBirthDate->getYear('', START_BIRTH_YEAR, ''); $this->arrBirthMonth = $objBirthDate->getMonth(true); $this->arrBirthDay = $objBirthDate->getDay(true); // 支払い方法の取得 $this->arrPayment = SC_Helper_Payment_Ex::getIDValueList(); // 配送業者の取得 $this->arrDeliv = SC_Helper_Delivery_Ex::getIDValueList(); $this->httpCacheControl('nocache'); }
/** * Page を初期化する. * * @return void */ public function init() { parent::init(); $this->tpl_mainpage = 'order/index.tpl'; $this->tpl_mainno = 'order'; $this->tpl_subno = 'index'; $this->tpl_pager = 'pager.tpl'; $this->tpl_maintitle = '受注管理'; $this->tpl_subtitle = '受注管理'; $masterData = new SC_DB_MasterData_Ex(); $this->arrORDERSTATUS = $masterData->getMasterData('mtb_order_status'); $this->arrORDERSTATUS_COLOR = $masterData->getMasterData('mtb_order_status_color'); $this->arrSex = $masterData->getMasterData('mtb_sex'); $this->arrPageMax = $masterData->getMasterData('mtb_page_max'); $objDate = new SC_Date_Ex(); // 登録・更新日検索用 $objDate->setStartYear(RELEASE_YEAR); $objDate->setEndYear(DATE('Y')); $this->arrRegistYear = $objDate->getYear(); // 生年月日検索用 $objDate->setStartYear(BIRTH_YEAR); $objDate->setEndYear(DATE('Y')); $this->arrBirthYear = $objDate->getYear(); // 月日の設定 $this->arrMonth = $objDate->getMonth(); $this->arrDay = $objDate->getDay(); // 支払い方法の取得 $this->arrPayments = SC_Helper_Payment_Ex::getIDValueList(); $this->httpCacheControl('nocache'); }
/** * Page を初期化する. * * @return void */ public function init() { parent::init(); $this->tpl_mainpage = 'basis/delivery_input.tpl'; $this->tpl_subno = 'delivery'; $this->tpl_mainno = 'basis'; $masterData = new SC_DB_MasterData_Ex(); $this->arrPref = $masterData->getMasterData('mtb_pref'); $this->arrProductType = $masterData->getMasterData('mtb_product_type'); $this->arrPayments = SC_Helper_Payment_Ex::getIDValueList(); $this->tpl_maintitle = '基本情報管理'; $this->tpl_subtitle = '配送方法設定'; $this->mode = $this->getMode(); }
/** * Page を初期化する. * * @return void */ public function init() { parent::init(); $this->tpl_mainpage = 'order/disp.tpl'; $this->tpl_mainno = 'order'; $this->tpl_subnavi = ''; $this->tpl_subno = ''; $this->tpl_subtitle = '受注情報表示'; $masterData = new SC_DB_MasterData_Ex(); $this->arrPref = $masterData->getMasterData('mtb_pref'); $this->arrORDERSTATUS = $masterData->getMasterData('mtb_order_status'); $this->arrDeviceType = $masterData->getMasterData('mtb_device_type'); $this->arrCountry = $masterData->getMasterData('mtb_country'); $this->arrSex = $masterData->getMasterData('mtb_sex'); $this->arrJob = $masterData->getMasterData('mtb_job'); // 支払い方法の取得 $this->arrPayment = SC_Helper_Payment_Ex::getIDValueList(); // 配送業者の取得 $this->arrDeliv = SC_Helper_Delivery_Ex::getIDValueList(); }
/** * Page を初期化する. * * @return void */ public function init() { parent::init(); $this->tpl_mainpage = 'products/upload_csv.tpl'; $this->tpl_mainno = 'products'; $this->tpl_subno = 'upload_csv'; $this->tpl_maintitle = '商品管理'; $this->tpl_subtitle = '商品登録CSV'; $this->csv_id = '1'; $masterData = new SC_DB_MasterData_Ex(); $this->arrDISP = $masterData->getMasterData('mtb_disp'); $this->arrSTATUS = $masterData->getMasterData('mtb_status'); $this->arrDELIVERYDATE = $masterData->getMasterData('mtb_delivery_date'); $this->arrProductType = $masterData->getMasterData('mtb_product_type'); $this->arrMaker = SC_Helper_Maker_Ex::getIDValueList(); $this->arrPayments = SC_Helper_Payment_Ex::getIDValueList(); $this->arrInfo = SC_Helper_DB_Ex::sfGetBasisData(); $this->arrAllowedTag = $masterData->getMasterData('mtb_allowed_tag'); $this->arrTagCheckItem = array(); }
/** * Page のアクション. * * @return void */ public function action() { $objDb = new SC_Helper_DB_Ex(); // パラメーター管理クラス $objFormParam = new SC_FormParam_Ex(); // パラメーター情報の初期化 $this->lfInitParam($objFormParam); $objFormParam->setParam($_POST); // 入力値の変換 $objFormParam->convParam(); $this->arrForm = $objFormParam->getHashArray(); //支払方法の取得 $this->arrPayment = SC_Helper_Payment_Ex::getIDValueList(); switch ($this->getMode()) { case 'update': switch ($objFormParam->getValue('change_status')) { // 削除 case 'delete': $this->lfDelete($objFormParam->getValue('move')); break; // 更新 // 更新 default: $this->lfStatusMove($objFormParam->getValue('change_status'), $objFormParam->getValue('move')); break; } break; case 'search': default: break; } // 対応状況 $status = $objFormParam->getValue('status'); if (strlen($status) === 0) { //デフォルトで新規受付一覧表示 $status = ORDER_NEW; } $this->SelectedStatus = $status; //検索結果の表示 $this->lfStatusDisp($status, $objFormParam->getValue('search_pageno')); }
/** * Page のAction. * * @return void */ public function action() { //決済処理中ステータスのロールバック $objPurchase = new SC_Helper_Purchase_Ex(); $objPurchase->cancelPendingOrder(PENDING_ORDER_CANCEL_FLAG); $objCustomer = new SC_Customer_Ex(); $customer_id = $objCustomer->getValue('customer_id'); //ページ送り用 $this->objNavi = new SC_PageNavi_Ex($_REQUEST['pageno'], $this->lfGetOrderHistory($customer_id), SEARCH_PMAX, 'eccube.movePage', NAVI_PMAX, 'pageno=#page#', SC_Display_Ex::detectDevice() !== DEVICE_TYPE_MOBILE); $this->arrOrder = $this->lfGetOrderHistory($customer_id, $this->objNavi->start_row); switch ($this->getMode()) { case 'getList': echo SC_Utils_Ex::jsonEncode($this->arrOrder); SC_Response_Ex::actionExit(); break; default: break; } // 支払い方法の取得 $this->arrPayment = SC_Helper_Payment_Ex::getIDValueList(); // 1ページあたりの件数 $this->dispNumber = SEARCH_PMAX; $this->json_payment = SC_Utils::jsonEncode($this->arrPayment); $this->json_customer_order_status = SC_Utils::jsonEncode($this->arrCustomerOrderStatus); }
/** * Page のAction. * * @return void */ public function action() { //決済処理中ステータスのロールバック $objPurchase = new SC_Helper_Purchase_Ex(); $objPurchase->cancelPendingOrder(PENDING_ORDER_CANCEL_FLAG); $objCustomer = new SC_Customer_Ex(); $objProduct = new SC_Product(); if (!SC_Utils_Ex::sfIsInt($_GET['order_id'])) { SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR); } $order_id = $_GET['order_id']; $this->is_price_change = false; //受注データの取得 $this->tpl_arrOrderData = $objPurchase->getOrder($order_id, $objCustomer->getValue('customer_id')); if (empty($this->tpl_arrOrderData)) { SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR); } $this->arrShipping = $this->lfGetShippingDate($objPurchase, $order_id, $this->arrWDAY); $this->isMultiple = count($this->arrShipping) > 1; // 支払い方法の取得 $this->arrPayment = SC_Helper_Payment_Ex::getIDValueList(); // 受注商品明細の取得 $this->tpl_arrOrderDetail = $objPurchase->getOrderDetail($order_id); foreach ($this->tpl_arrOrderDetail as $product_index => $arrOrderProductDetail) { //必要なのは商品の販売金額のみなので、遅い場合は、別途SQL作成した方が良い $arrTempProductDetail = $objProduct->getProductsClass($arrOrderProductDetail['product_class_id']); // 税計算 $this->tpl_arrOrderDetail[$product_index]['price_inctax'] = $this->tpl_arrOrderDetail[$product_index]['price'] + SC_Helper_TaxRule_Ex::calcTax($this->tpl_arrOrderDetail[$product_index]['price'], $this->tpl_arrOrderDetail[$product_index]['tax_rate'], $this->tpl_arrOrderDetail[$product_index]['tax_rule']); $arrTempProductDetail['price02_inctax'] = SC_Helper_TaxRule_Ex::sfCalcIncTax($arrTempProductDetail['price02'], $arrTempProductDetail['product_id'], $arrTempProductDetail['product_class_id']); if ($this->tpl_arrOrderDetail[$product_index]['price_inctax'] != $arrTempProductDetail['price02_inctax']) { $this->is_price_change = true; } $this->tpl_arrOrderDetail[$product_index]['product_price_inctax'] = $arrTempProductDetail['price02_inctax'] ? $arrTempProductDetail['price02_inctax'] : 0; } $this->tpl_arrOrderDetail = $this->setMainListImage($this->tpl_arrOrderDetail); $objPurchase->setDownloadableFlgTo($this->tpl_arrOrderDetail); // モバイルダウンロード対応処理 $this->lfSetAU($this->tpl_arrOrderDetail); // 受注メール送信履歴の取得 $this->tpl_arrMailHistory = $this->lfGetMailHistory($order_id); }