- Timestamp:
- 2014/05/27 13:32:19 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/Smarty/templates/admin/order/product_select.tpl
r23425 r23448 92 92 93 93 if (sele1) { 94 if (sele2 ) {94 if (sele2 && sele2.type == 'select-one') { 95 95 // 規格2の選択肢をクリア 96 96 count = sele2.options.length; … … 111 111 } 112 112 } 113 fnCheckStock(form);114 }115 }116 117 function fnCheckStock(form) {118 product_id = form.product_id.value;119 classcat_id1 = form.classcategory_id1.value;120 classcat_id2 = form.classcategory_id2 ? form.classcategory_id2.value : '';121 classcat2 = eccube.productsClassCategories[product_id][classcat_id1]['#' + classcat_id2];122 // 商品規格123 eleDynamic = document.getElementById('product_class_id' + product_id);124 if (125 classcat2126 && typeof classcat2.product_class_id != 'undefined'127 && String(classcat2.product_class_id).length >= 1128 ) {129 eleDynamic.value = classcat2.product_class_id;130 } else {131 // 規格が1つのみの場合132 classcat1 = eccube.productsClassCategories[product_id][classcat_id1]['#0'];133 eleDynamic.value = classcat1.product_class_id;134 113 } 135 114 } … … 212 191 <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> 213 192 <!--{$arrProducts[cnt].name|h}--> 214 <!--{assign var=class1 value= classcategory_id`$id`_1}-->215 <!--{assign var=class2 value= classcategory_id`$id`_2}-->193 <!--{assign var=class1 value="classcategory_id`$id`_1"}--> 194 <!--{assign var=class2 value="classcategory_id`$id`_2"}--> 216 195 <!--{if $tpl_classcat_find1[$id]}--> 217 196 <dl> … … 227 206 </dl> 228 207 <!--{else}--> 229 <input type="hidden" name=" <!--{$class1}-->" id="<!--{$class1}-->" value="" />208 <input type="hidden" name="classcategory_id1" id="<!--{$class1}-->" value="" /> 230 209 <!--{/if}--> 231 210 … … 241 220 </dl> 242 221 <!--{else}--> 243 <input type="hidden" name=" <!--{$class2}-->" id="<!--{$class2}-->" value="" />222 <input type="hidden" name="classcategory_id2" id="<!--{$class2}-->" value="" /> 244 223 <!--{/if}--> 245 224
Note: See TracChangeset
for help on using the changeset viewer.