We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a966bf7 commit aa8fc6dCopy full SHA for aa8fc6d
app/code/Magento/ConfigurableProduct/Model/Resource/Product/Type/Configurable/Attribute/Collection.php
@@ -263,7 +263,12 @@ protected function _loadPrices()
263
$values = $this->getPriceValues();
264
265
foreach ($values as $data) {
266
- $this->getItemById($data['product_super_attribute_id'])->addPrice($data);
+ $item = $this->getItemById($data['product_super_attribute_id']);
267
+ //the price values is cached, it could have gotten out of sync with current items
268
+ //when a filter is added, in that case, we just ignore the data from the cache
269
+ if ($item) {
270
+ $item->addPrice($data);
271
+ }
272
}
273
274
return $this;
0 commit comments