Ticket #2432 (closed バグ指摘: 修正済)
v2.13.0 管理画面:受注変更画面(複数配送)で、お届け先ごとの商品の「削除」ボタンの表示誤り
| Reported by: | kimoto | Owned by: | dkazuto |
|---|---|---|---|
| Priority: | 中 | Milestone: | EC-CUBE2.13.1 |
| Component: | フロント | Version: | 2.12.5 |
| Keywords: | Cc: | ||
| 修正済み: | yes |
Description
受注情報編集画面(複数配送)において、お届け先に、「変更」ボタンと「削除」ボタンが表示されます。私の認識として、商品が1種類の場合、「削除」ボタンは、表示しない。ものと思っています。つまり、お届け先1 商品1 [変更]お届け先2 商品1 [変更]で、表示される。しかし、以下の場合、お届け先1 商品1 [変更][削除] 商品2 [変更][削除]お届け先2 商品1 [変更][削除]と、表示されます。(お届け先2、商品1に、「削除」ボタンが表示される。)data/Smarty/templates/admin/order/edit.tpl
<!--{if $arrForm.shipping_quantity.value > 1}-->
<h2>届け先商品情報 <a class="btn-normal" href="java script:;" name="add_product" onclick="eccube.openWindow('<!--{$smarty.const.ROOT_URLPATH}--><!--{$smarty.const.ADMIN_DIR}-->order/product_select.php?order_id=<!--{$arrForm.order_id.value|h}-->&shipping_id=<!--{$shipping_index}-->', 'search', '615', '500', {menubar:'no'}); return false;">商品の追加</a>
</h2>
<!--{assign var=product_quantity value="shipping_product_quantity"}-->
<input type="hidden" name="<!--{$product_quantity}-->[<!--{$shipping_index}-->]" value="<!--{$arrShipping[$product_quantity]|h}-->" />
<!--{if count($arrShipping.shipment_product_class_id) > 0}-->
<table class="list order-edit-products">
<tr>
<th class="id">商品コード</th>
<th class="name">商品名/規格1/規格2</th>
<th class="price">単価</th>
<th class="qty">数量</th>
</tr>
<!--{section name=item loop=$arrShipping.shipment_product_class_id|@count}-->
<!--{assign var=item_index value="`$smarty.section.item.index`"}-->
.
.
<a class="btn-normal" href="java script:;" name="change" onclick="eccube.openWindow('<!--{$smarty.const.ROOT_URLPATH}--><!--{$smarty.const.ADMIN_DIR}-->order/product_select.php?no=<!--{$item_index}-->&order_id=<!--{$arrForm.order_id.value|h}-->&shipping_id=<!--{$shipping_index}-->', 'search', '615', '500', {menubar:'no'}); return false;">変更</a>
<!--{if count($arrForm.quantity.value) > 1}-->
<a class="btn-normal" href="java script:;" name="delete" onclick="eccube.setValue('delete_no', <!--{$item_index}-->, 'form1'); eccube.setValue('select_shipping_id', <!--{$shipping_index}-->, 'form1'); eccube.setModeAndSubmit('delete_product','anchor_key','order_products'); return false;">削除</a>
<!--{/if}-->
.
.
<!--{/section}-->
</table>
<!--{/if}-->
<!--{else}-->
<!-- 配送先が1つでも、shipment_itemを更新するために必要 -->
.
.
<!--{/section}-->
<!--{/if}-->
<!--{if count($arrForm.quantity.value) > 1}-->
このコードは、
<!--{if count($arrShipping.shipment_product_class_id) > 1}-->
でないといけないのでは。
Change History
Note: See
TracTickets for help on using
tickets.
