Skip to content

Commit

Permalink
Configurable: remove unused double foreach loop (#4008)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanmac authored Oct 11, 2024
1 parent 5a95706 commit 5475f45
Showing 1 changed file with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 5475f45

Please sign in to comment.