Ticket #2520 (closed バグ指摘: 修正済)
Re: v2.13.1 管理画面>受注管理にて受注数量の変更ができない
Reported by: | kimoto | Owned by: | kimoto |
---|---|---|---|
Priority: | 中 | Milestone: | EC-CUBE2.13.2 |
Component: | 管理画面 | Version: | 2.13.1 |
Keywords: | Cc: | ||
修正済み: | yes |
Description
・お届け先は1口 ・お届け先は、注文者自身ではなく、追加登録した住所 の場合、発生します。
不具合ですね。edit.tpl(v2.13.1の修正を加えていないソースコードです。) function quantityCopyForSingleShipping(product_index){ var product_index = parseInt(product_index); var input_quantity = $('input[name^="quantity[' + product_index + ']"]').val(); $('input[name^="shipment_quantity[0][' + product_index + ']"]').val(input_quantity); } この部分の「shipment_quantity[0]」が「0」の決め打ちになっているのが原因ですね。追記:以外と修正は単純なようです。「0」-->「<!--{$top_shipping_id}-->」にすれば良いようです。つまり、edit.tplの修正案を以下のようにします。 function quantityCopyForSingleShipping(product_index, shipment_product_index){ var product_index = parseInt(product_index); var input_quantity = $('input[name^="quantity[' + product_index + ']"]').val(); $('input[name^="shipment_quantity[<!--{$top_shipping_id}-->][' + shipment_product_index + ']"]').val(input_quantity); } きれいではないですが、取り合えず。quantityCopyForSingleShippingを呼ぶ側で、<!--{$top_shipping_id}-->を引数に追加し、quantityCopyForSingleShippingは、その引数を使用する方がきれいではありますが。
Change History
Note: See
TracTickets for help on using
tickets.