From 04f4957c1d002b441a91bf16ba9c55857b25a545 Mon Sep 17 00:00:00 2001 From: Francesco Tuzzolino Date: Tue, 4 Aug 2020 13:06:47 +0200 Subject: [PATCH 1/2] Fix special price management for bundled products --- app/code/core/Mage/Catalog/Model/Product/Type/Price.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/core/Mage/Catalog/Model/Product/Type/Price.php b/app/code/core/Mage/Catalog/Model/Product/Type/Price.php index 4a8ab893620..31786f42a43 100644 --- a/app/code/core/Mage/Catalog/Model/Product/Type/Price.php +++ b/app/code/core/Mage/Catalog/Model/Product/Type/Price.php @@ -283,7 +283,7 @@ protected function _getCustomerGroupId($product) */ protected function _applySpecialPrice($product, $finalPrice) { - return self::calculateSpecialPrice( + return $this->calculateSpecialPrice( $finalPrice, $product->getSpecialPrice(), $product->getSpecialFromDate(), From 8f20f32278f65f26b0c9f3d0d5329e0b930b91b9 Mon Sep 17 00:00:00 2001 From: Francesco Tuzzolino Date: Fri, 7 Aug 2020 10:46:50 +0200 Subject: [PATCH 2/2] Call function as static --- app/code/core/Mage/Catalog/Model/Product/Type/Price.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/core/Mage/Catalog/Model/Product/Type/Price.php b/app/code/core/Mage/Catalog/Model/Product/Type/Price.php index 31786f42a43..a504bd4ce57 100644 --- a/app/code/core/Mage/Catalog/Model/Product/Type/Price.php +++ b/app/code/core/Mage/Catalog/Model/Product/Type/Price.php @@ -283,7 +283,7 @@ protected function _getCustomerGroupId($product) */ protected function _applySpecialPrice($product, $finalPrice) { - return $this->calculateSpecialPrice( + return static::calculateSpecialPrice( $finalPrice, $product->getSpecialPrice(), $product->getSpecialFromDate(),