diff --git a/admin-dev/themes/template/products/form.tpl b/admin-dev/themes/template/products/form.tpl index 8cefb482b..2a0f49f5f 100644 --- a/admin-dev/themes/template/products/form.tpl +++ b/admin-dev/themes/template/products/form.tpl @@ -128,6 +128,7 @@ $('li.tab-row a[id*="Shipping"]').show(); $('#condition').removeAttr('disabled'); $('#condition option[value=new]').removeAttr('selected'); + $('.stockForVirtualProduct').show(); } else if (val == 2) { @@ -140,12 +141,14 @@ $('#condition').attr('disabled', 'disabled'); $('#condition option[value=refurbished]').removeAttr('selected'); $('#condition option[value=used]').removeAttr('selected'); + $('.stockForVirtualProduct').hide(); } else { $('li.tab-row a[id*="Shipping"]').show(); $('#condition').removeAttr('disabled'); $('#condition option[value=new]').removeAttr('selected'); + $('.stockForVirtualProduct').show(); } }); diff --git a/admin-dev/themes/template/products/quantities.tpl b/admin-dev/themes/template/products/quantities.tpl index e49f72075..bc095df29 100644 --- a/admin-dev/themes/template/products/quantities.tpl +++ b/admin-dev/themes/template/products/quantities.tpl @@ -58,8 +58,7 @@ - {if !$product->is_virtual} - + is_virtual}style="display:none;"{/if} class="stockForVirtualProduct"> - + is_virtual}style="display:none;"{/if} class="stockForVirtualProduct"> - {/if} - + + is_virtual}style="display:none;"{/if} class="stockForVirtualProduct">
advanced_stock_management == 1 && $stock_management_active == 1}value="1" checked="checked"{else}value="0"{/if} {if $stock_management_active == 0}disabled="disabled" {/if} type="checkbox" name="advanced_stock_management" class="advanced_stock_management" id="advanced_stock_management" /> @@ -67,15 +66,15 @@

depends_on_stock == 1 && $stock_management_active == 1}checked="checked" {/if} {if $stock_management_active == 0 || $product->advanced_stock_management == 0}disabled="disabled" {/if} type="radio" name="depends_on_stock" class="depends_on_stock" id="depends_on_stock_1" value="1"/>

depends_on_stock == 0 || $stock_management_active == 0}checked="checked" {/if} type="radio" name="depends_on_stock" class="depends_on_stock" id="depends_on_stock_0" value="0"/>