[Svn-src-all:3902] [version-2_12_4en 22816] #2238 mobileの部分を対応しました。

michael_nelson admin @ mail.ec-cube.net
2013年 5月 13日 (月) 19:38:25 JST


Subversion committed to /home/svn/open 22816
http://svn.ec-cube.net/open_trac/changeset/22816
┌────────────────────────────┐
│更新者 :  michael_nelson                               │
│更新日時:  2013-05-13 19:38:25 +0900 (月, 13  5月 2013)│
└────────────────────────────┘

Log:
--------------------------------------------------------
#2238  mobileの部分を対応しました。

Changed:                      [U:修正,A:追加,D:削除]
--------------------------------------------------------
U   branches/version-2_12_4en/data/class/pages/cart/LC_Page_Cart.php

変更: branches/version-2_12_4en/data/class/pages/cart/LC_Page_Cart.php
===================================================================
--- branches/version-2_12_4en/data/class/pages/cart/LC_Page_Cart.php	2013-05-13 07:50:35 UTC (rev 22815)
+++ branches/version-2_12_4en/data/class/pages/cart/LC_Page_Cart.php	2013-05-13 10:38:25 UTC (rev 22816)
@@ -85,7 +85,17 @@
         $objFormParam = $this->lfInitParam($_POST);
         $this->mode = $this->getMode();
 
-        $this->cartKeys = $objCartSess->getKeys();
+        // モバイル対応
+	    if (SC_Display_Ex::detectDevice() == DEVICE_TYPE_MOBILE) {
+	        if (isset($_GET['cart_no'])) {
+	            $objFormParam->setValue('cart_no', $_GET['cart_no']);
+	        }
+	        if (isset($_GET['cartKey'])) {
+	                $objFormParam->setValue('cartKey', $_GET['cartKey']);
+	        }
+	    }
+		
+		$this->cartKeys = $objCartSess->getKeys();
         foreach ($this->cartKeys as $key) {
             // 商品購入中にカート内容が変更された。
             if ($objCartSess->getCancelPurchase($key)) {




Svn-src-all メーリングリストの案内