diff --git a/admin-dev/themes/template/products/combinations.tpl b/admin-dev/themes/template/products/combinations.tpl index 9e7aed62e..14a2fd496 100644 --- a/admin-dev/themes/template/products/combinations.tpl +++ b/admin-dev/themes/template/products/combinations.tpl @@ -166,7 +166,7 @@ {/if}
- +
diff --git a/admin-dev/themes/template/products/form.tpl b/admin-dev/themes/template/products/form.tpl index acfe137f9..abc8d3cf6 100644 --- a/admin-dev/themes/template/products/form.tpl +++ b/admin-dev/themes/template/products/form.tpl @@ -79,7 +79,36 @@ var toload = new Array(); $(document).ready(function(){ + + {if $is_pack} + $('#pack_product').attr("checked", "checked"); + $('li.tab-row a[id*="VirtualProduct"]').hide(); + {elseif $product->is_virtual} + $('#virtual_product').attr("checked", "checked"); + $('li.tab-row a[id*="Pack"]').hide(); + {else} + $('#simple_product').attr("checked", "checked"); + $('li.tab-row a[id*="Pack"]').hide(); + $('li.tab-row a[id*="VirtualProduct"]').hide(); + {/if} + + $('input[name="type_product"]').click(function() { + $('li.tab-row a[id*="Pack"]').hide(); + $('li.tab-row a[id*="VirtualProduct"]').hide(); + var val = $(this).val(); + if (val == 1) + $('li.tab-row a[id*="Pack"]').show(); + else if (val == 2) + $('li.tab-row a[id*="VirtualProduct"]').show(); + else + { + $('#is_virtual_good').removeAttr("checked"); + $('#is_virtual').val(0); + } + }); + $('#desc-product-newCombination').hide(); + {* submenu binding *} $(".tab-page").click(function(e){ e.preventDefault(); @@ -160,31 +189,6 @@ + +| + + + | +
+
+
+ {foreach from=$product->packItems item=packItem}
+ {$packItem->pack_quantity} x {$packItem->name}
+
+
+
+
+
+
+ ![]() + {/foreach} + {l s='Begin typing the first letters of the product name, then select the product from the drop-down list:'}
+
+ |
+
+
|
+ is_virtual && $product->productDownload->active}checked="checked"{/if} /> + + + {* [begin] virtual product *} +productDownload->id || $product->productDownload->active}style="display:none"{/if} >
+
+
+
|
+ ||||
+ '.$msg.' :
+ '.realpath(_PS_DOWNLOAD_DIR_).'/'.$product_download_attribute->filename.'
+