Skip to content

Commit bc7c2fd

Browse files
author
Valeriy Nayda
committed
MAGETWO-50409: Changing order of configurable attributes is ignored on frontend
1 parent a6a900a commit bc7c2fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/ConfigurableProduct/Model/ConfigurableAttributeData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function getAttributesData(Product $product, array $options = [])
3030
if ($attributeOptionsData) {
3131
$productAttribute = $attribute->getProductAttribute();
3232
$attributeId = $productAttribute->getId();
33-
$attributes['swatch_' . $attributeId] = [
33+
$attributes[] = [
3434
'id' => $attributeId,
3535
'code' => $productAttribute->getAttributeCode(),
3636
'label' => $productAttribute->getStoreLabel($product->getStoreId()),

0 commit comments

Comments
 (0)