From 4b46ff68e1e06c44c1833b087d3fceb461f37bf6 Mon Sep 17 00:00:00 2001 From: Shreesh Arora Date: Thu, 21 Sep 2023 13:23:47 +0530 Subject: [PATCH 1/3] resolve multiple specific price visible for a single catalog rule --- classes/SpecificPrice.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/classes/SpecificPrice.php b/classes/SpecificPrice.php index 38119ed81..4986e4ea3 100644 --- a/classes/SpecificPrice.php +++ b/classes/SpecificPrice.php @@ -145,7 +145,12 @@ class SpecificPriceCore extends ObjectModel FROM `'._DB_PREFIX_.'specific_price` WHERE 1 '.self::filterOutField('id_product', $id_product). ($id_product_attribute ? ' AND id_product_attribute = '.(int) $id_product_attribute : '').' - AND id_cart = '.(int) $id_cart + AND id_cart = '.(int) $id_cart.' + GROUP BY + case when id_specific_price_rule <> 0 + then id_specific_price_rule + else id_specific_price + end' ); } From c18becbb429b6ad47bdeaa20f338249bcf645e55 Mon Sep 17 00:00:00 2001 From: Shreesh Arora Date: Wed, 25 Oct 2023 11:07:52 +0530 Subject: [PATCH 2/3] fix specific price not applying with catalog price rule --- admin/themes/default/template/controllers/products/prices.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/themes/default/template/controllers/products/prices.tpl b/admin/themes/default/template/controllers/products/prices.tpl index 5713c330d..b9d0b26d2 100644 --- a/admin/themes/default/template/controllers/products/prices.tpl +++ b/admin/themes/default/template/controllers/products/prices.tpl @@ -494,7 +494,7 @@ $(document).ready(function () {
{if !$multi_shop} - + {else}
+ {else}