From c93fa3f0cc0150f1570c3ce3c0cdc09d5eb0a213 Mon Sep 17 00:00:00 2001 From: Hans Mackowiak Date: Fri, 24 May 2024 16:26:12 +0200 Subject: [PATCH] Configurable: remove unused double foreach loop --- .../Block/Product/View/Type/Configurable.php | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/app/code/core/Mage/Catalog/Block/Product/View/Type/Configurable.php b/app/code/core/Mage/Catalog/Block/Product/View/Type/Configurable.php index 6201403b42a..ff4713d2219 100644 --- a/app/code/core/Mage/Catalog/Block/Product/View/Type/Configurable.php +++ b/app/code/core/Mage/Catalog/Block/Product/View/Type/Configurable.php @@ -25,14 +25,14 @@ class Mage_Catalog_Block_Product_View_Type_Configurable extends Mage_Catalog_Blo { /** * Prices - * + * @deprecated * @var array */ protected $_prices = []; /** * Prepared prices - * + * @deprecated * @var array */ protected $_resPrices = []; @@ -216,14 +216,7 @@ public function getJsonConfig() $optionPrices[] = $configurablePrice; } } - /** - * Prepare formatted values for options choose - */ - foreach ($optionPrices as $optionPrice) { - foreach ($optionPrices as $additional) { - $this->_preparePrice(abs($additional - $optionPrice)); - } - } + if ($this->_validateAttributeInfo($info)) { $attributes[$attributeId] = $info; }