source: branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping_Complete.php @ 19661

Revision 19661, 22.8 KB checked in by nanasess, 13 years ago (diff)

source:branches/camp/camp-2_5-E のマージ

  • スマートフォン対応(#787)
  • プラグイン機能(#494)
  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id Revision Date
  • Property svn:mime-type set to text/x-httpd-php; charset=UTF-8
Line 
1<?php
2/*
3 * This file is part of EC-CUBE
4 *
5 * Copyright(c) 2000-2010 LOCKON CO.,LTD. All Rights Reserved.
6 *
7 * http://www.lockon.co.jp/
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22 */
23
24// {{{ requires
25require_once(CLASS_PATH . "pages/LC_Page.php");
26
27/**
28 * ご注文完了 のページクラス.
29 *
30 * @package Page
31 * @author LOCKON CO.,LTD.
32 * @version $Id:LC_Page_Shopping_Complete.php 15532 2007-08-31 14:39:46Z nanasess $
33 */
34class LC_Page_Shopping_Complete extends LC_Page {
35
36    // }}}
37    // {{{ functions
38
39    /**
40     * Page を初期化する.
41     *
42     * @return void
43     */
44    function init() {
45        parent::init();
46        $this->tpl_mainpage = 'shopping/complete.tpl';
47        $this->tpl_title = "ご注文完了";
48        $this->tpl_column_num = 1;
49
50        $masterData = new SC_DB_MasterData_Ex();
51        $this->arrCONVENIENCE = $masterData->getMasterData("mtb_convenience");
52        $this->arrCONVENIMESSAGE = $masterData->getMasterData("mtb_conveni_message");
53    }
54
55    /**
56     * Page のプロセス.
57     *
58     * @return void
59     */
60    function process() {
61        parent::process();
62        $this->action();
63        $this->sendResponse();
64    }
65
66    /**
67     * Page のアクション.
68     *
69     * @return void
70     */
71    function action() {
72        $objView = new SC_SiteView();
73        $objSiteInfo = $objView->objSiteInfo;
74        $this->arrInfo = $objSiteInfo->data;
75    }
76
77    /**
78     * デストラクタ.
79     *
80     * @return void
81     */
82    function destroy() {
83        parent::destroy();
84    }
85
86    /**
87     * モバイルページを初期化する.
88     *
89     * @return void
90     */
91    function mobileInit() {
92        $this->init();
93    }
94
95    /**
96     * Page のプロセス(モバイル).
97     *
98     * @return void
99     */
100    function mobileProcess() {
101        parent::mobileProcess();
102        $this->mobileAction();
103        $this->sendResponse();
104    }
105    /**
106     * Page のプロセス(モバイル).
107     *
108     * @return void
109     */
110    function mobileAction() {
111        $objView = new SC_MobileView();
112        $this->objSiteSess = new SC_SiteSession();
113        $this->objCartSess = new SC_CartSession();
114        $objSiteInfo = $objView->objSiteInfo;
115        $this->arrInfo = $objSiteInfo->data;
116        $this->objCustomer = new SC_Customer();
117        $mailHelper = new SC_Helper_Mail_Ex();
118
119        // 前のページで正しく登録手続きが行われたか判定
120        SC_Utils_Ex::sfIsPrePage($this->objSiteSess);
121        // ユーザユニークIDの取得と購入状態の正当性をチェック
122        $uniqid = SC_Utils_Ex::sfCheckNormalAccess($this->objSiteSess, $this->objCartSess);
123        if ($uniqid != "") {
124
125            // 完了処理
126            $objQuery = new SC_Query();
127            $objQuery->begin();
128            $order_id = $this->lfDoComplete($objQuery, $uniqid);
129            $objQuery->commit();
130
131            // セッションに保管されている情報を更新する
132            $this->objCustomer->updateSession();
133
134            // 完了メール送信
135            if($order_id != "") {
136                $mailHelper->sfSendOrderMail($order_id, '2');
137            }
138
139            //その他情報の取得
140            $other_data = $objQuery->get("dtb_order", "memo02", "order_id = ? ", array($order_id));
141            if($other_data != "") {
142                $arrOther = unserialize($other_data);
143
144                // データを編集
145                foreach($arrOther as $key => $val){
146                    // URLの場合にはリンクつきで表示させる
147                    if (preg_match('/^(https?|ftp)(:\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+)$/', $val["value"])) {
148                        $arrOther[$key]["value"] = "<a href='". $val["value"]. "'>". $val["value"]. "</a>";
149                    }
150                }
151
152                $this->arrOther = $arrOther;
153
154            }
155
156            // アフィリエイト用コンバージョンタグの設定
157            $this->tpl_conv_page = AFF_SHOPPING_COMPLETE;
158            $this->tpl_aff_option = "order_id=$order_id";
159            //合計価格の取得
160            $total = $objQuery->get("dtb_order", "total", "order_id = ? ", array($order_id));
161            if($total != "") {
162                $this->tpl_aff_option.= "|total=$total";
163            }
164
165            // TS連携モジュールの実行
166            if (function_exists('sfTSRequest')) {
167                sfTSRequest($order_id);
168            }
169        }
170    }
171
172
173    // エビスタグ引渡し用データを生成する
174    function lfGetEbisData($order_id) {
175        $objQuery = new SC_Query();
176        $col = "customer_id, total, order_sex, order_job, to_number(to_char(age(current_timestamp, order_birth), 'YYY'), 999) AS order_age";
177        $arrRet = $objQuery->select($col, "dtb_order", "order_id = ?", array($order_id));
178
179        if($arrRet[0]['customer_id'] > 0) {
180            // 会員番号
181            $arrEbis['m1id'] = $arrRet[0]['customer_id'];
182            // 非会員or会員
183            $arrEbis['o5id'] = '1';
184        } else {
185            // 会員番号
186            $arrEbis['m1id'] = '';
187            // 非会員or会員
188            $arrEbis['o5id'] = '2';
189        }
190
191        // 購入金額
192        $arrEbis['a1id'] = $arrRet[0]['total'];
193        // 性別
194        $arrEbis['o2id'] = $arrRet[0]['order_sex'];
195        // 年齢
196        $arrEbis['o3id'] = $arrRet[0]['order_age'];
197        // 職業
198        $arrEbis['o4id'] = $arrRet[0]['order_job'];
199
200        $objQuery->setGroupBy("product_id");
201        $arrRet = $objQuery->select("product_id", "dtb_order_detail", "order_id = ?", array($order_id));
202        $arrProducts = sfSwapArray($arrRet);
203
204        $line = "";
205        // 商品IDをアンダーバーで接続する。
206        foreach($arrProducts['product_id'] as $val) {
207            if($line != "") {
208                $line .= "_$val";
209            } else {
210                $line .= "$val";
211            }
212        }
213
214        // 商品ID
215        $arrEbis['o1id'] = $line;
216
217        return $arrEbis;
218    }
219
220    /**
221     * 購入完了処理
222     *
223     * @param object $objQuery
224     * @param string $uniqid
225     * @return string $order_id
226     */
227    function lfDoComplete(&$objQuery, $uniqid) {
228        $objDb = new SC_Helper_DB_Ex();
229
230        // 一時受注テーブルの読込
231        $arrData = $objDb->sfGetOrderTemp($uniqid);
232
233        // 会員情報登録処理
234        if ($this->objCustomer->isLoginSuccess(true)) {
235            // 新お届け先の登録
236            $this->lfSetNewAddr($uniqid, $this->objCustomer->getValue('customer_id'));
237            // 購入集計を顧客テーブルに反映
238            $this->lfSetCustomerPurchase($this->objCustomer->getValue('customer_id'), $arrData, $objQuery);
239        } else {
240            // 購入時強制会員登録が有効の場合
241            if (PURCHASE_CUSTOMER_REGIST == '1') {
242                // 会員登録
243                $customer_id = $this->lfRegistCustomer($arrData, $this->arrInfo);
244                // 購入集計を顧客テーブルに反映
245                $this->lfSetCustomerPurchase($customer_id, $arrData, $objQuery);
246            }
247        }
248        // 一時テーブルを受注テーブルに格納する
249        $order_id = $this->lfRegistOrder($objQuery, $arrData);
250        // カート商品を受注詳細テーブルに格納する
251        $this->lfRegistOrderDetail($objQuery, $order_id, $this->objCartSess);
252        // 受注一時テーブルの情報を削除する。
253        $this->lfDeleteTempOrder($objQuery, $uniqid);
254
255        // セッションカート内の商品を削除する。
256        $this->objCartSess->delAllProducts();
257        // 注文一時IDを解除する。
258        $this->objSiteSess->unsetUniqId();
259
260        return $order_id;
261    }
262
263    // 会員登録
264    function lfRegistCustomer($arrData, $arrInfo) {
265        $objQuery = new SC_Query();
266
267        //会員登録時に仮会員確認用のメールを送付するか
268        $confirm_flg = CUSTOMER_CONFIRM_MAIL;
269
270        // 購入時の会員登録
271        $sqlval['name01'] = $arrData['order_name01'];
272        $sqlval['name02'] = $arrData['order_name02'];
273        $sqlval['kana01'] = $arrData['order_kana01'];
274        $sqlval['kana02'] = $arrData['order_kana02'];
275        $sqlval['zip01'] = $arrData['order_zip01'];
276        $sqlval['zip02'] = $arrData['order_zip02'];
277        $sqlval['pref'] = $arrData['order_pref'];
278        $sqlval['addr01'] = $arrData['order_addr01'];
279        $sqlval['addr02'] = $arrData['order_addr02'];
280        $sqlval['email'] = $arrData['order_email'];
281        $sqlval['tel01'] = $arrData['order_tel01'];
282        $sqlval['tel02'] = $arrData['order_tel02'];
283        $sqlval['tel03'] = $arrData['order_tel03'];
284        $sqlval['fax01'] = $arrData['order_fax01'];
285        $sqlval['fax02'] = $arrData['order_fax02'];
286        $sqlval['fax03'] = $arrData['order_fax03'];
287        $sqlval['sex'] = $arrData['order_sex'];
288        $sqlval['password'] = $arrData['password'];
289        $sqlval['reminder'] = $arrData['reminder'];
290        $sqlval['reminder_answer'] = $arrData['reminder_answer'];
291
292        // 仮会員登録の場合
293        if ($confirm_flg == true) {
294            // 重複しない会員登録キーを発行する。
295            $count = 1;
296            while ($count != 0) {
297                $uniqid = SC_Utils_Ex::sfGetUniqRandomId("t");
298                $count = $objQuery->count("dtb_customer", "secret_key = ?", array($uniqid));
299            }
300            $sqlval["status"] = "1";    // 仮会員
301        //本会員登録
302        } else {
303            // 重複しない会員登録キーを発行する。
304            $count = 1;
305            while ($count != 0) {
306                $uniqid = SC_Utils_Ex::sfGetUniqRandomId("r");
307                $count = $objQuery->count("dtb_customer", "secret_key = ?", array($uniqid));
308            }
309            $sqlval["status"] = "2";    // 本会員
310        }
311
312        // メルマガフラグ
313        switch ($arrData["mailmaga_flg"]) {
314            case 1: // HTMLメール
315                $mail_flag = 4;
316                break;
317            case 2: // TEXTメール
318                $mail_flag = 5;
319                break;
320            default:
321                $mail_flag = 6;
322                break;
323        }
324        $sqlval['mailmaga_flg'] = $mail_flag;
325
326        // URL判定用キー
327        $sqlval['secret_key'] = SC_Utils_Ex::sfGetUniqRandomId("t");
328
329        $sqlval['create_date'] = "now()";
330        $sqlval['update_date'] = "now()";
331
332        $sqlval['customer_id'] = $objQuery->nextVal('dtb_customer_customer_id');
333        $customer_id = $sqlval['customer_id'];
334
335        $objQuery->insert("dtb_customer", $sqlval);
336
337        // 登録完了メール送信
338        $objMailPage = $this;
339        $objMailPage->name01 = $arrData['order_name01'];
340        $objMailPage->name02 = $arrData['order_name02'];
341        $objMailPage->CONF = $arrInfo;
342        $objMailPage->uniqid = $sqlval['secret_key'];
343        $objMailView = new SC_SiteView();
344        $objMailView->assignobj($objMailPage);
345        $body = $objMailView->fetch("mail_templates/customer_mail.tpl");
346
347        $mailHelper = new SC_Helper_Mail_Ex();
348
349        //仮会員メール
350        if ($confirm_flg == true) {
351            $subject = $mailHelper->sfMakeSubject('会員登録のご確認');
352            $body = $objMailView->fetch('mail_templates/customer_mail.tpl');
353        //本会員メール
354        } else {
355            $subject = $mailHelper->sfMakeSubject('会員登録のご完了');
356            $body = $objMailView->fetch('mail_templates/customer_regist_mail.tpl');
357            // ログイン状態にする
358            $this->objCustomer->setLogin($arrData['order_email']);
359        }
360
361        $objMail = new SC_SendMail();
362        $objMail->setItem(
363                            ''                                      // 宛先
364                            , $subject                              // サブジェクト
365                            , $body                                 // 本文
366                            , $arrInfo['email03']                   // 配送元アドレス
367                            , $arrInfo['shop_name']                 // 配送元 名前
368                            , $arrInfo["email03"]                   // reply_to
369                            , $arrInfo["email04"]                   // return_path
370                            , $arrInfo["email04"]                   //  Errors_to
371                            , $arrInfo["email01"]                   //  Bcc
372                                                            );
373        // 宛先の設定
374        $name = $arrData['order_name01'] . $arrData['order_name02'] ." 様";
375        $objMail->setTo($arrData['order_email'], $name);
376        $objMail->sendMail();
377
378        return $customer_id;
379    }
380
381    /**
382     * 受注テーブルへ登録
383     *
384     * @return integer 注文番号
385     */
386    function lfRegistOrder($objQuery, $arrData) {
387        $objDb = new SC_Helper_DB_Ex();
388        $sqlval = $arrData;
389
390        // 受注テーブルに書き込まない列を除去
391        unset($sqlval['mailmaga_flg']);     // メルマガチェック
392        unset($sqlval['deliv_check']);      // 別のお届け先チェック
393        unset($sqlval['point_check']);      // ポイント利用チェック
394        unset($sqlval['password']);         // ログインパスワード
395        unset($sqlval['reminder']);         // リマインダー質問
396        unset($sqlval['reminder_answer']);  // リマインダー答え
397        unset($sqlval['mail_flag']);        // メールフラグ
398        unset($sqlval['session']);          // セッション情報
399
400        //ダウンロード商品判定
401        $this->cartdown = $objDb->chkCartDown($this->objCartSess);
402
403        // ポイントは別登録
404        $addPoint = $sqlval['add_point'];
405        $usePoint = $sqlval['use_point'];
406        $sqlval['add_point'] = 0;
407        $sqlval['use_point'] = 0;
408
409        // 合計金額が0円の場合、もしくはオンライン決済の場合は、注文ステータスをORDER_PRE_END[入金済み]にする
410        if ( ( $sqlval['total'] == 0 ) or ( in_array($sqlval['payment_id'], split(",", ONLINE_PAYMENT)) == true ) ){
411            $sqlval = $this->lfchgPreEndStatus($sqlval);
412        }
413        if(strlen($sqlval['status']) == 0) {
414            // 注文ステータス:指定が無ければ新規受付に設定
415            $sqlval['status'] = ORDER_NEW;
416        }
417
418        // 別のお届け先を指定していない場合、お届け先に登録住所をコピーする。
419        if ($arrData["deliv_check"] == "-1") {
420            $sqlval['deliv_name01'] = $arrData['order_name01'];
421            $sqlval['deliv_name02'] = $arrData['order_name02'];
422            $sqlval['deliv_kana01'] = $arrData['order_kana01'];
423            $sqlval['deliv_kana02'] = $arrData['order_kana02'];
424            $sqlval['deliv_pref'] = $arrData['order_pref'];
425            $sqlval['deliv_zip01'] = $arrData['order_zip01'];
426            $sqlval['deliv_zip02'] = $arrData['order_zip02'];
427            $sqlval['deliv_addr01'] = $arrData['order_addr01'];
428            $sqlval['deliv_addr02'] = $arrData['order_addr02'];
429            $sqlval['deliv_tel01'] = $arrData['order_tel01'];
430            $sqlval['deliv_tel02'] = $arrData['order_tel02'];
431            $sqlval['deliv_tel03'] = $arrData['order_tel03'];
432        }
433
434        $order_id = $arrData['order_id'];       // 注文番号
435        $sqlval['create_date'] = 'Now()';       // 受注日
436        $sqlval['update_date'] = 'Now()';       // 更新日時
437
438        // 受注テーブルの登録
439        $objQuery->insert("dtb_order", $sqlval);
440
441        // 受注.対応状況の更新
442        SC_Helper_DB_Ex::sfUpdateOrderStatus($order_id, null, $addPoint, $usePoint);
443
444        return $order_id;
445    }
446
447    // 受注詳細テーブルへ登録
448    function lfRegistOrderDetail(&$objQuery, $order_id, &$objCartSess) {
449        $objDb = new SC_Helper_DB_Ex();
450        // カート内情報の取得
451        $this->cartKey = $_SESSION['cartKey'];
452        $arrCart = $objCartSess->getCartList($this->cartKey);
453        $max = count($arrCart);
454
455        // 既に存在する詳細レコードを消しておく。
456        $objQuery->delete("dtb_order_detail", "order_id = ?", array($order_id));
457
458        // 規格名一覧
459        $arrClassName = $objDb->sfGetIDValueList("dtb_class", "class_id", "name");
460        // 規格分類名一覧
461        $arrClassCatName = $objDb->sfGetIDValueList("dtb_classcategory", "classcategory_id", "name");
462
463        $objProduct = new SC_Product();
464        for ($i = 0; $i < $max; $i++) {
465            // 商品規格情報の取得
466            $arrData = $objProduct->getDetailAndProductsClass($arrCart[$i]['id']);
467
468            // 存在する商品のみ表示する。
469            if($arrData != "") {
470                $sqlval['order_id'] = $order_id;
471                $sqlval['product_id'] = $arrData['product_id'];
472                $sqlval['product_class_id'] = $arrData['product_class_id'];
473                $sqlval['product_name'] = $arrData['name'];
474                $sqlval['product_code'] = $arrData['product_code'];
475                $sqlval['classcategory_name1'] = $arrData['classcategory_name1'];
476                $sqlval['classcategory_name2'] = $arrData['classcategory_name2'];
477                $sqlval['point_rate'] = $arrCart[$i]['point_rate'];
478                $sqlval['price'] = $arrCart[$i]['price'];
479                $sqlval['quantity'] = $arrCart[$i]['quantity'];
480                $this->lfReduceStock($objQuery, $arrCart[$i]['id'], $arrCart[$i]['quantity']);
481                // INSERTの実行
482                $objQuery->insert("dtb_order_detail", $sqlval);
483            } else {
484                SC_Utils_Ex::sfDispSiteError(CART_NOT_FOUND);
485            }
486        }
487    }
488
489    /* 受注一時テーブルの削除 */
490    function lfDeleteTempOrder(&$objQuery, $uniqid) {
491        $where = "order_temp_id = ?";
492        $sqlval['del_flg'] = 1;
493        $objQuery->update("dtb_order_temp", $sqlval, $where, array($uniqid));
494        // $objQuery->delete("dtb_order_temp", $where, array($uniqid));
495    }
496
497    // 受注一時テーブルの住所が登録済みテーブルと異なる場合は、別のお届け先に追加する
498    function lfSetNewAddr($uniqid, $customer_id) {
499        $objQuery = new SC_Query();
500        $diff = false;
501        $find_same = false;
502
503        $col = "deliv_name01,deliv_name02,deliv_kana01,deliv_kana02,deliv_tel01,deliv_tel02,deliv_tel03,deliv_zip01,deliv_zip02,deliv_pref,deliv_addr01,deliv_addr02";
504        $where = "order_temp_id = ?";
505        $arrRet = $objQuery->select($col, "dtb_order_temp", $where, array($uniqid));
506
507        // 要素名のdeliv_を削除する。
508        foreach($arrRet[0] as $key => $val) {
509            $keyname = ereg_replace("^deliv_", "", $key);
510            $arrNew[$keyname] = $val;
511        }
512
513        // 会員情報テーブルとの比較
514        $col = "name01,name02,kana01,kana02,tel01,tel02,tel03,zip01,zip02,pref,addr01,addr02";
515        $where = "customer_id = ?";
516        $arrCustomerAddr = $objQuery->select($col, "dtb_customer", $where, array($customer_id));
517
518        // 会員情報の住所と異なる場合
519        if($arrNew != $arrCustomerAddr[0]) {
520            // 別のお届け先テーブルの住所と比較する
521            $col = "name01,name02,kana01,kana02,tel01,tel02,tel03,zip01,zip02,pref,addr01,addr02";
522            $where = "customer_id = ?";
523            $arrOtherAddr = $objQuery->select($col, "dtb_other_deliv", $where, array($customer_id));
524
525            foreach($arrOtherAddr as $arrval) {
526                if($arrNew == $arrval) {
527                    // すでに同じ住所が登録されている
528                    $find_same = true;
529                }
530            }
531
532            if(!$find_same) {
533                $diff = true;
534            }
535        }
536
537        // 新しいお届け先が登録済みのものと異なる場合は別のお届け先テーブルに登録する
538        if($diff) {
539            $sqlval = $arrNew;
540            $sqlval['customer_id'] = $customer_id;
541            $sqlval['other_deliv_id'] = $objQuery->nextVal('dtb_other_deliv_other_deliv_id');
542            $objQuery->insert("dtb_other_deliv", $sqlval);
543        }
544    }
545
546    /* 購入情報を会員テーブルに登録する */
547    function lfSetCustomerPurchase($customer_id, $arrData, &$objQuery) {
548        $col = "first_buy_date, last_buy_date, buy_times, buy_total";
549        $where = "customer_id = ?";
550        $arrRet = $objQuery->select($col, "dtb_customer", $where, array($customer_id));
551        $sqlval = $arrRet[0];
552
553        if($sqlval['first_buy_date'] == "") {
554            $sqlval['first_buy_date'] = "Now()";
555        }
556        $sqlval['last_buy_date'] = "Now()";
557        $sqlval['buy_times']++;
558        $sqlval['buy_total']+= $arrData['total'];
559
560        $objQuery->update("dtb_customer", $sqlval, $where, array($customer_id));
561    }
562
563    /**
564     * 在庫を減らす処理
565     *
566     * FIXME 件数カウントバッチは最後にまとめて実行すること.
567     */
568    function lfReduceStock(&$objQuery, $product_class_id, $quantity) {
569        $objDb = new SC_Helper_DB_Ex();
570
571        if (!SC_Utils_Ex::sfIsInt($quantity)) {
572            $objQuery->rollback();
573            SC_Utils_Ex::sfDispException();
574        }
575
576        $objProduct = new SC_Product();
577        $productsClass = $objProduct->getDetailAndProductsClass($product_class_id);
578
579        if (($productsClass['stock_unlimited'] != '1' && $productsClass['stock'] < $quantity)
580            || $quantity == 0) {
581            // 売り切れエラー
582            $objQuery->rollback();
583            SC_Utils_Ex::sfDispSiteError(SOLD_OUT, "", true);
584        }
585
586        // 在庫を減らす
587        $arrRawSql = array();
588        $arrRawSql['stock'] = 'stock - ?';
589        $arrRawSqlVal[] = $quantity;
590        $objQuery->update('dtb_products_class', array(), "product_class_id = ?", array($val['product_class_id']), $arrRawSql, $arrRawSqlVal);
591
592        // 在庫無し商品の非表示対応
593        if (NOSTOCK_HIDDEN === true) {
594            // 件数カウントバッチ実行
595            $objDb->sfCategory_Count($objQuery);
596        }
597
598    }
599
600    // ステータスを入金済みにする
601    function lfchgPreEndStatus($sqlval){
602        $sqlval['status'] = ORDER_PRE_END;
603        $sqlval['payment_date'] = 'NOW()';
604        //ダウンロード商品のみの場合はORDER_DELIV[発送済み]にして発送時間を入れる
605        if($this->cartdown == 2){
606            $sqlval['status'] = ORDER_DELIV;
607            $sqlval['commit_date'] = 'NOW()';
608        }
609        return $sqlval;
610    }
611}
612?>
Note: See TracBrowser for help on using the repository browser.