From 50642c518f52201215c50787cf8dcf04b8bb6d75 Mon Sep 17 00:00:00 2001 From: lLefevre Date: Wed, 21 Dec 2011 10:38:27 +0000 Subject: [PATCH] [-] FO : #PSTEST-81 : delete tab shipping if is virtual product git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11464 b9a71923-0436-4b27-9f14-aed3839534dd --- admin-dev/themes/template/products/form.tpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/admin-dev/themes/template/products/form.tpl b/admin-dev/themes/template/products/form.tpl index b85493033..1a95cd274 100644 --- a/admin-dev/themes/template/products/form.tpl +++ b/admin-dev/themes/template/products/form.tpl @@ -86,6 +86,7 @@ {elseif $product->is_virtual} $('#virtual_product').attr('checked', 'checked'); $('li.tab-row a[id*="Pack"]').hide(); + $('li.tab-row a[id*="Shipping"]').hide(); {else} $('#simple_product').attr('checked', 'checked'); $('li.tab-row a[id*="Pack"]').hide(); @@ -110,6 +111,7 @@ $('li.tab-row a[id*="Pack"]').show(); $('#ppack').val(1).attr('checked', true).attr('disabled', 'disabled'); $('#ppackdiv').show(); + $('li.tab-row a[id*="Shipping"]').show(); } else if (val == 2) { @@ -118,7 +120,10 @@ $('#virtual_good').show(); $('#is_virtual').val(1); $("#virtual_good_attributes").show(); + $('li.tab-row a[id*="Shipping"]').hide(); } + else + $('li.tab-row a[id*="Shipping"]').show(); });