cancel
Showing results for 
Search instead for 
Did you mean: 

Magento swatch order by position in product list

Magento swatch order by position in product list

Hello everyone!

 

I have been breaking my head for a few days but I can not solve the following problem:

 

I defined the numbers for the positions of an attribute, as shown below:

 

https://imgur.com/gkScFoq

 

And on the product details page, the order of position numbers is respected by Magento, and loaded correctly, as shown below:

 

https://imgur.com/8OPb65y

 

But in the product listing, the position numbers are ignored, and the attributes are in an order that I can not change in any way, as the print below:

 

https://imgur.com/BGJ5kEs

 

How do I sort these swatches by position on the product listing page? Even if for this I use some code.

 

Thank you very much in advance!