Ticket #1952 (closed バグ指摘: 修正済)
モバイルサイト カートイン時に商品規格2の選択が正しく認識されない
Reported by: | Seasoft | Owned by: | Seasoft |
---|---|---|---|
Priority: | 高 | Milestone: | EC-CUBE2.12.3 |
Component: | フロント | Version: | 2.12.2 |
Keywords: | Cc: | ||
修正済み: | yes |
Description (last modified by Seasoft) (diff)
フォーラムにて t_tsuru 様からご報告頂きました。
http://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=11547&forum=8
r22052 にて再現を確認しました。
r22055 にて改修しました。
Change History
comment:1 Changed 11 years ago by Seasoft
- Owner changed from somebody to Seasoft
- Status changed from new to assigned
comment:2 follow-up: ↓ 3 Changed 11 years ago by shutta
ちょうどこのチケット見ていたので、勿体ないのでパッチ貼り付けておきます。(先にアサインしておけばよかった)
--- LC_Page_Products_Detail.php (リビジョン 22053) +++ LC_Page_Products_Detail.php (作業コピー) @@ -614,7 +614,6 @@ if ($this->tpl_classcat_find2 and $this->arrErr['classcategory_id2']) { // templateの変更 $this->tpl_mainpage = 'products/select_find2.tpl'; - break; } $value1 = $this->objFormParam->getValue('classcategory_id1'); @@ -630,7 +629,9 @@ $value1 = '__unselected'; } - $this->tpl_product_class_id = $objProduct->classCategories[$product_id][$value1][$value2]['product_class_id']; + $objProduct = new SC_Product_Ex(); + $objProduct->setProductsClassByProductIds(array($this->tpl_product_id)); + $this->tpl_product_class_id = $objProduct->classCategories[$this->tpl_product_id][$value1][$value2]['product_class_id']; // この段階では、数量の入力チェックエラーを出させない。 unset($this->arrErr['quantity']);
Note: See
TracTickets for help on using
tickets.