From 284f758cb4e4bfe390a0519ff9c83c4422986abe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Mon, 12 Aug 2013 18:40:52 +0200 Subject: [PATCH] [-] FO: Fix quantity discount table display for non default attribute #PSCFV-9942 --- themes/default/js/product.js | 4 ++-- themes/default/product.tpl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/themes/default/js/product.js b/themes/default/js/product.js index 7f3959df2..8e959b9ae 100644 --- a/themes/default/js/product.js +++ b/themes/default/js/product.js @@ -442,9 +442,9 @@ function displayDiscounts(combination) $(this).fadeOut('slow'); }); - if ($('#quantityDiscount_' + combination).length != 0) + if ($('#quantityDiscount_' + combination+',.quantityDiscount_' + combination).length != 0) { - $('#quantityDiscount_' + combination).show(); + $('#quantityDiscount_' + combination+',.quantityDiscount_' + combination).show(); $('#noQuantityDiscount').hide(); } else diff --git a/themes/default/product.tpl b/themes/default/product.tpl index a9a3ed9e4..97f5bbb08 100644 --- a/themes/default/product.tpl +++ b/themes/default/product.tpl @@ -470,7 +470,7 @@ var fieldRequired = '{l s='Please fill in all the required fields before saving {foreach from=$quantity_discounts item='quantity_discount' name='quantity_discounts'} - + {if (isset($quantity_discount.attributes) && ($quantity_discount.attributes))} {$product->getProductName($quantity_discount.id_product, $quantity_discount.id_product_attribute)}