Ignore:
Timestamp:
2013/06/13 19:35:56 (11 years ago)
Author:
michael_nelson
Message:

#2263 - Merged 2.12.4en into 2.12multi_lang

Location:
branches/version-2_12-multilang
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-multilang

  • branches/version-2_12-multilang/data

  • branches/version-2_12-multilang/data/class/pages/cart/LC_Page_Cart.php

    r22504 r22859  
    8383        $objCustomer = new SC_Customer_Ex(); 
    8484 
    85         $objFormParam = $this->lfInitParam($_REQUEST); 
     85        $objFormParam = $this->lfInitParam($_POST); 
    8686        $this->mode = $this->getMode(); 
    8787 
    88         $this->cartKeys = $objCartSess->getKeys(); 
     88        // モバイル対応 
     89        if (SC_Display_Ex::detectDevice() == DEVICE_TYPE_MOBILE) { 
     90            if (isset($_GET['cart_no'])) { 
     91                $objFormParam->setValue('cart_no', $_GET['cart_no']); 
     92            } 
     93            if (isset($_GET['cartKey'])) { 
     94                    $objFormParam->setValue('cartKey', $_GET['cartKey']); 
     95            } 
     96        } 
     97         
     98        $this->cartKeys = $objCartSess->getKeys(); 
    8999        foreach ($this->cartKeys as $key) { 
    90100            // 商品購入中にカート内容が変更された。 
     
    96106        $cart_no = $objFormParam->getValue('cart_no'); 
    97107        $cartKey = $objFormParam->getValue('cartKey'); 
     108         
     109        // エラーチェック 
     110        $arrError = $objFormParam->checkError(); 
     111        if(isset($arrError) && !empty($arrError)) { 
     112            SC_Utils_Ex::sfDispSiteError(CART_NOT_FOUND); 
     113            SC_Response_Ex::actionExit(); 
     114        } 
    98115 
    99116        switch ($this->mode) { 
     
    207224        $objFormParam->addParam(t('c_Category ID_01'), 'category_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 
    208225        // スマートフォン版での数量変更用 
    209         $objFormParam->addParam(t('c_Quantity_01'), 'quantity', INT_LEN, 'n', array('EXIST_CHECK', 'ZERO_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK')); 
     226        $objFormParam->addParam(t('c_Quantity_01'), 'quantity', INT_LEN, 'n', array('ZERO_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK')); 
    210227        // 値の取得 
    211228        $objFormParam->setParam($arrRequest); 
Note: See TracChangeset for help on using the changeset viewer.