You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue serves as a feature request to remember the order in which multiselect filters were applied on the PLPs layered navigation.
The selection of filters get appended to the url, example ?colors[0]=red&colors[1]=grey. I would assume this order would be kept, but that appears to not be the case:
I would like to see this feature because we have logic that displays a different product image on the PLP based on the most recently activated (color) filter.
Technical details
I decided to dig a little deeper and it looks like the filter order is not kept in the init \Tweakwise\Magento2Tweakwise\Model\Catalog\Layer\FilterList\Tweakwise::initFilters
Issue Brief
This issue serves as a feature request to remember the order in which multiselect filters were applied on the PLPs layered navigation.
The selection of filters get appended to the url, example
?colors[0]=red&colors[1]=grey
. I would assume this order would be kept, but that appears to not be the case:I would like to see this feature because we have logic that displays a different product image on the PLP based on the most recently activated (color) filter.
Technical details
I decided to dig a little deeper and it looks like the filter order is not kept in the init
\Tweakwise\Magento2Tweakwise\Model\Catalog\Layer\FilterList\Tweakwise::initFilters
In order to init the filter, facets are retrieved from the attributes and these determine the sort order of active filters.
In the future, would it be possible to keep the applied multiselect filter sort order applied?
Environment
The text was updated successfully, but these errors were encountered: