Closed Hlavtox closed 2 years ago
@Hlavtox it s also a bug on classic default theme ?
@prestarocket No, they have a different way of displaying this dropdown.
ok thx, i will test your PR tomorrow
@prestarocket Thanks!
Maybe we could do it by this variable - _{if $listing.sort_selected}{$listing.sortselected}{else}{l s='Select' d='Shop.Theme.Actions'}{/if}
Look how they done it in the original file - https://github.com/PrestaShop/PrestaShop/blob/develop/themes/classic/templates/catalog/_partials/sort-orders.tpl
@prestarocket I changed the logic completely, I used the provided varible, now it's just one condition. Check it plz :-)
This PR fixes a bug, when there is a different sort order selected on initial load than the one currently in use.
How to reproduce the bug