0

If size swatch not found with color swatch then it showing in last position, But I want to show in ascending order.
Any way for this?

enter image description here enter image description here enter image description here

2

Yo! Yo! Find a Solution!

Open File

vendor/magento/module-configurable-product/Model/ResourceModel/Attribute/OptionSelectBuilder.php

Add Below code on after line no. 93
)->joinInner( ['attribute_option' => $this->attributeResource->getTable('eav_attribute_option')], 'attribute_option.option_id = entity_value.value', [] )->order('attribute_option.sort_order ASC'

enter image description here

enter image description here

Note: You need to set position of swatch in admin

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.