cancel
Showing results for 
Search instead for 
Did you mean: 

magento 2 sort order text swatch attributes

SOLVED

magento 2 sort order text swatch attributes

Hi am trying to solve this issue. On category and product pages the text swatch attributes are disordered. Anybody know how to set the ASC. In backend the show well and in layered nav also but not op the category and product pages.  https://screencast.com/t/gvuyfBTHn

1 ACCEPTED SOLUTION

Accepted Solutions

Re: magento 2 sort order text swatch attributes

Hello @mediameta ,

 

Please check before after screenshot 

Before: https://www.screencast.com/t/Wm4XROt2wI

2019-02-23_13-00-12.jpg

 

After: https://www.screencast.com/t/SVlUQuUZV

2019-02-23_12-57-27.jpg

 

You can see that it is working as excepted.  After drag attribute option, Please run below command in magento root directory

php bin/magento cache:clean
php bin/magento cache:flush
php bin/magento indexer:reindex

--
If my answer is useful, please Accept as Solution & give Kudos

 

 

View solution in original post

3 REPLIES 3

Re: magento 2 sort order text swatch attributes

Hello @mediameta ,

 

After login, Please go to Stores > Attributes > Product Find swatch attribute and edit it and goto Manage Swatch  

Please sort all value by ascending order and reindex via terminal and check it.

https://www.screencast.com/t/avBC4aKIya

 

 

--
If my answer is useful, please Accept as Solution & give Kudos

Re: magento 2 sort order text swatch attributes

Hi these are in correct order. https://screencast.com/t/KZDb3A59m. but on frontend not.

Re: magento 2 sort order text swatch attributes

Hello @mediameta ,

 

Please check before after screenshot 

Before: https://www.screencast.com/t/Wm4XROt2wI

2019-02-23_13-00-12.jpg

 

After: https://www.screencast.com/t/SVlUQuUZV

2019-02-23_12-57-27.jpg

 

You can see that it is working as excepted.  After drag attribute option, Please run below command in magento root directory

php bin/magento cache:clean
php bin/magento cache:flush
php bin/magento indexer:reindex

--
If my answer is useful, please Accept as Solution & give Kudos