Ignore:
Timestamp:
2011/10/20 16:54:55 (12 years ago)
Author:
shutta
Message:

refs #1509 (モバイル> 数量指定ページの数量チェックがきちんと動作していない)
数量チェックが適切に動作するように修正。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_11-dev/data/class/pages/products/LC_Page_Products_Detail.php

    r21287 r21288  
    214214                    } 
    215215 
     216                    // 数量の入力を行う 
     217                    $this->tpl_mainpage = "products/select_item.tpl"; 
     218                    break; 
     219 
    216220                case 'select2': 
    217221                    $this->arrErr = $this->lfCheckError($this->mode,$this->objFormParam,$this->tpl_classcat_find1,$this->tpl_classcat_find2); 
     
    256260                    $this->tpl_product_class_id = $objProduct->classCategories[$product_id][$value1][$value2]['product_class_id']; 
    257261 
     262                    // この段階では、数量の入力チェックエラーを出させない。 
     263                    unset($this->arrErr['quantity']); 
     264 
    258265                    // 数量の入力を行う 
    259266                    $this->tpl_mainpage = "products/select_item.tpl"; 
     267                    break; 
     268 
     269                case 'cart': 
     270                    // この段階でエラーが出る場合は、数量の入力エラーのはず 
     271                    if (count($this->arrErr)) { 
     272                        // 数量の入力を行う 
     273                        $this->tpl_mainpage = "products/select_item.tpl"; 
     274                    } 
    260275                    break; 
    261276 
Note: See TracChangeset for help on using the changeset viewer.