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 645e6e0 commit da126e0Copy full SHA for da126e0
app/code/Magento/ConfigurableProduct/Helper/Data.php
@@ -76,9 +76,11 @@ public function getGalleryImages(\Magento\Catalog\Api\Data\ProductInterface $pro
76
public function getOptions($currentProduct, $allowedProducts)
77
{
78
$options = [];
79
+ $allowAttributes = $this->getAllowAttributes($currentProduct);
80
+
81
foreach ($allowedProducts as $product) {
82
$productId = $product->getId();
- foreach ($this->getAllowAttributes($currentProduct) as $attribute) {
83
+ foreach ($allowAttributes as $attribute) {
84
$productAttribute = $attribute->getProductAttribute();
85
$productAttributeId = $productAttribute->getId();
86
$attributeValue = $product->getData($productAttribute->getAttributeCode());
0 commit comments