Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Sort configurable Attributes by position #380

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ private function getConfigurableAttributesForProductsFromResource(array $product
)
->group('product_id')
->where('product_id IN (?)', $productIds);
$this->dbHelper->addGroupConcatColumn($select, 'attribute_ids', 'attribute_id');
$this->dbHelper->addGroupConcatColumn($select, 'attribute_ids', 'attribute_id ORDER BY position ASC');

return $this->getConnection()->fetchAssoc($select);
}
Expand Down