EmicoEcommerce / Magento2Tweakwise-archived

Magento 2 module for Tweakwise integration
Other
9 stars 25 forks source link

fix(sorting-plp): Remove parent selector #174

Closed renehol closed 3 years ago

renehol commented 3 years ago

We ran into an issue with the sorting on the plp.

The sorting JS code uses a parent selector to find the elements. But when the parent selector is not used in the template or if multiple elements with the parent-selctor classnames are existing, the code will only use the last parent element to search for the sorting elements.

Removed the parent selector. Magento default uses [role=""] selectors to search for the elements. This works.