diff --git a/admin-dev/themes/template/products/form.tpl b/admin-dev/themes/template/products/form.tpl index 7d172c0d7..3582af625 100644 --- a/admin-dev/themes/template/products/form.tpl +++ b/admin-dev/themes/template/products/form.tpl @@ -93,22 +93,29 @@ {/if} $('input[name="type_product"]').click(function() { + + // Reset settings $('li.tab-row a[id*="Pack"]').hide(); $('li.tab-row a[id*="VirtualProduct"]').hide(); + $('#is_virtual_good').removeAttr('checked'); + $('#is_virtual').val(0); + var val = $(this).val(); + if (val == 1) + { $('li.tab-row a[id*="Pack"]').show(); + $('#ppack').val(1).attr('checked', true).attr('disabled', 'disabled'); + $('#ppackdiv').show(); + } else if (val == 2) { $('li.tab-row a[id*="VirtualProduct"]').show(); - $('#is_virtual_good').attr('checked', true).attr('disabled', 'disabled'); + $('#is_virtual_good').attr('checked', true).attr('disabled', 'disabled'); $('#virtual_good').show(); + $('#is_virtual').val(1); } - else - { - $('#is_virtual_good').removeAttr('checked'); - $('#is_virtual').val(0); - } + }); $('#desc-product-newCombination').hide(); @@ -191,79 +198,6 @@ //]]> - -
diff --git a/admin-dev/themes/template/products/informations.tpl b/admin-dev/themes/template/products/informations.tpl index 123a78037..6ce4b4b80 100644 --- a/admin-dev/themes/template/products/informations.tpl +++ b/admin-dev/themes/template/products/informations.tpl @@ -82,15 +82,15 @@
-