バージョン選択
フォーラム
メニュー
オンライン状況
|
|
37 人のユーザが現在オンラインです。 (29 人のユーザが フォーラム を参照しています。) |
|
|
バグ報告 > 管理機能 > v2.13 管理画面 受注情報編集画面でのダウンロード商品の「変更」「削除」の扱い |
|
管理機能
投稿者 |
スレッド |
sumida |
投稿日時: 2014/1/19 10:11
対応状況: −−−
|
仙人 登録日: 2013/2/10 居住地: 広島県呉市ときどき瀬戸内海 投稿: 641 |
Re: v2.13 管理画面 受注情報編集画面でのダウンロード商品の「変更」「削除」の扱い これが、最後です。 edit.tpl
diff -ur orig/edit.tpl new/edit.tpl
--- orig/edit.tpl 2014-01-08 21:34:26.000000000 +0900
+++ new/edit.tpl 2014-01-17 22:50:50.000000000 +0900
@@ -94,11 +94,13 @@
}
});
- function quantityCopyForSingleShipping(product_index){
+// changed #2428,#2485
+ function quantityCopyForSingleShipping(shipping_index, product_index, shipment_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);
+ $('input[name^="shipment_quantity[' + shipping_index + '][' + shipment_product_index + ']"]').val(input_quantity);
}
+// changed #2428,#2485
//-->
</script>
@@ -115,6 +117,9 @@
<input type="hidden" id="edit_product_class_id" name="edit_product_class_id" value="" />
<input type="hidden" id="no" name="no" value="" />
<input type="hidden" id="delete_no" name="delete_no" value="" />
+<!--{* added *}-->
+ <input type="hidden" id="product_select_product_type_id" name="product_select_product_type_id" value="" />
+<!--{* added *}-->
<!--{foreach key=key item=item from=$arrSearchHidden}-->
<!--{if is_array($item)}-->
<!--{foreach item=c_item from=$item}-->
@@ -326,7 +331,17 @@
受注商品情報
<a class="btn-normal" href="java script:;" name="recalculate" onclick="eccube.setModeAndSubmit('recalculate','anchor_key','order_products');">計算結果の確認</a>
<!--{if $arrForm.shipping_quantity.value <= 1}-->
+<!--{* changed *}-->
+<!--{if $arrForm.quantity.value == 0}--><!--{* 受注情報の新規登録 *}-->
<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=<!--{$top_shipping_id}-->', 'search', '615', '500', {menubar:'no'}); return false;">商品の追加</a>
+<!--{else}-->
+ <!--{if $arrForm.product_type_id.value[0] == $smarty.const.PRODUCT_TYPE_DOWNLOAD}--><!--{* 受注情報の編集:ダウンロード商品 *}-->
+ <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}-->&product_select_product_type_id=<!--{$smarty.const.PRODUCT_TYPE_DOWNLOAD}-->', 'search', '615', '500', {menubar:'no'}); return false;">商品の追加</a>
+ <!--{else}--><!--{* 受注情報の編集:通常商品 *}-->
+ <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=<!--{$top_shipping_id}-->&product_select_product_type_id=<!--{$smarty.const.PRODUCT_TYPE_NORMAL}-->', 'search', '615', '500', {menubar:'no'}); return false;">商品の追加</a>
+ <!--{/if}-->
+<!--{/if}-->
+<!--{* changed *}-->
<!--{/if}-->
</h2>
@@ -345,6 +360,13 @@
</tr>
<!--{section name=cnt loop=$arrForm.quantity.value}-->
<!--{assign var=product_index value="`$smarty.section.cnt.index`"}-->
+<!--{* added #2428,#2485 *}-->
+ <!--{if $arrForm.shipping_quantity.value > 1}-->
+ <!--{assign var=shipping_product_index value="`$smarty.section.cnt.index`"}-->
+ <!--{else}-->
+ <!--{assign var=shipping_product_index value="`$arrOrderIndex[$smarty.section.cnt.index]`"}-->
+ <!--{/if}-->
+<!--{* added #2428,#2485 *}-->
<tr>
<td class="center">
<!--{$arrForm.product_code.value[$product_index]|h}-->
@@ -357,9 +379,21 @@
<input type="hidden" name="classcategory_name2[<!--{$product_index}-->]" value="<!--{$arrForm.classcategory_name2.value[$product_index]|h}-->" id="classcategory_name2_<!--{$product_index}-->" />
<br />
<!--{if $arrForm.shipping_quantity.value <= 1}-->
- <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=<!--{$product_index}-->&order_id=<!--{$arrForm.order_id.value|h}-->&shipping_id=<!--{$top_shipping_id}-->', 'search', '615', '500', {menubar:'no'}); return false;">変更</a>
+<!--{* changed #2428,#2485 *}-->
+<!--{if $arrForm.product_type_id.value[$product_index] == $smarty.const.PRODUCT_TYPE_DOWNLOAD}-->
+ <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=<!--{$product_index}-->&order_id=<!--{$arrForm.order_id.value|h}-->&product_select_product_type_id=<!--{$smarty.const.PRODUCT_TYPE_DOWNLOAD}-->', 'search', '615', '500', {menubar:'no'}); return false;">変更</a>
+<!--{else}-->
+ <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=<!--{$shipping_product_index}-->&order_id=<!--{$arrForm.order_id.value|h}-->&shipping_id=<!--{$top_shipping_id}-->&product_select_product_type_id=<!--{$smarty.const.PRODUCT_TYPE_NORMAL}-->', 'search', '615', '500', {menubar:'no'}); return false;">変更</a>
+<!--{/if}-->
+<!--{* changed #2428,#2485 *}-->
<!--{if count($arrForm.quantity.value) > 1}-->
- <a class="btn-normal" href="java script:;" name="delete" onclick="eccube.setValue('delete_no', <!--{$product_index}-->, 'form1'); eccube.setValue('select_shipping_id', '<!--{$top_shipping_id}-->', 'form1'); eccube.setModeAndSubmit('delete_product','anchor_key','order_products'); return false;">削除</a>
+<!--{* changed #2428,#2485 *}-->
+<!--{if $arrForm.product_type_id.value[$product_index] == $smarty.const.PRODUCT_TYPE_DOWNLOAD}-->
+ <a class="btn-normal" href="java script:;" name="delete" onclick="eccube.setValue('delete_no', <!--{$product_index}-->, 'form1'); eccube.setValue('product_select_product_type_id', <!--{$smarty.const.PRODUCT_TYPE_DOWNLOAD}-->, 'form1'); eccube.setModeAndSubmit('delete_product','anchor_key','order_products'); return false;">削除</a>
+<!--{else}-->
+ <a class="btn-normal" href="java script:;" name="delete" onclick="eccube.setValue('delete_no', <!--{$shipping_product_index}-->, 'form1'); eccube.setValue('product_select_product_type_id', <!--{$smarty.const.PRODUCT_TYPE_NORMAL}-->, 'form1'); eccube.setValue('select_shipping_id', '<!--{$top_shipping_id}-->', 'form1'); eccube.setModeAndSubmit('delete_product','anchor_key','order_products'); return false;">削除</a>
+<!--{/if}-->
+<!--{* changed #2428,#2485 *}-->
<!--{/if}-->
<!--{/if}-->
<input type="hidden" name="product_type_id[<!--{$product_index}-->]" value="<!--{$arrForm.product_type_id.value[$product_index]|h}-->" id="product_type_id_<!--{$product_index}-->" />
@@ -375,7 +409,15 @@
<td class="center">
<!--{assign var=key value="quantity"}-->
<span class="attention"><!--{$arrErr[$key][$product_index]}--></span>
- <input type="text" name="<!--{$key}-->[<!--{$product_index}-->]" value="<!--{$arrForm[$key].value[$product_index]|h}-->" size="3" class="box3" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key][$product_index]|sfGetErrorColor}-->" id="<!--{$key}-->_<!--{$product_index}-->" onChange="quantityCopyForSingleShipping('<!--{$product_index}-->')" />
+<!--{* changed #2428,#2485 *}-->
+<!--{* changed *}-->
+<!--{if $arrForm.product_type_id.value[$product_index] == $smarty.const.PRODUCT_TYPE_DOWNLOAD}-->
+ <input type="text" name="<!--{$key}-->[<!--{$product_index}-->]" value="<!--{$arrForm[$key].value[$product_index]|h}-->" size="3" class="box3" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key][$product_index]|sfGetErrorColor}-->" id="<!--{$key}-->_<!--{$product_index}-->" />
+<!--{else}-->
+ <input type="text" name="<!--{$key}-->[<!--{$product_index}-->]" value="<!--{$arrForm[$key].value[$product_index]|h}-->" size="3" class="box3" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key][$product_index]|sfGetErrorColor}-->" id="<!--{$key}-->_<!--{$product_index}-->" onChange="quantityCopyForSingleShipping('<!--{$top_shipping_id}-->', '<!--{$product_index}-->', '<!--{$shipping_product_index}-->')" />
+<!--{/if}-->
+<!--{* changed *}-->
+<!--{* changed #2428,#2485 *}-->
</td>
<!--{assign var=price value=`$arrForm.price.value[$product_index]`}-->
<!--{assign var=quantity value=`$arrForm.quantity.value[$product_index]`}-->
@@ -470,6 +512,9 @@
</table>
<!--{assign var=key value="shipping_quantity"}-->
<input type="hidden" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" />
+<!--{* added *}-->
+<!--{if $arrForm.quantity.value == 0 || $arrForm.product_type_id.value[0] != $smarty.const.PRODUCT_TYPE_DOWNLOAD}--><!--{* 受注情報の新規登録 *}--><!--{* 受注情報の編集:ダウンロード商品以外 *}-->
+<!--{* added *}-->
<!--▼お届け先情報ここから-->
<a name="shipping"></a>
<h2>お届け先情報
@@ -747,6 +792,9 @@
</tr>
</table>
<!--▲受注商品情報ここまで-->
+<!--{* added *}-->
+<!--{/if}-->
+<!--{* added *}-->
<div class="btn-area">
<ul>
|
|
|
|
統計情報
総メンバー数は89,264名です
総投稿数は110,059件です
|