Web200 / magento2-elasticsuite-ajax

Add Elasticsuite ajax navigation
23 stars 8 forks source link

Category default_sort_by not working #10

Open deda-digital opened 2 years ago

deda-digital commented 2 years ago

Hi, using this module on a clean install of m2.4.3-p1 + elasticsuite 2.10.9.1 and luma theme: product sorting in category view and catalogsearch is alwasys forced (at first load) to position, regardless of category default_sort_by.

deda-digital commented 2 years ago

This is breaking things:

        <move element="category.products" destination="category.list.view" />
        <referenceContainer name="content">
            <container name="category.list.view" htmlTag="div" htmlClass="category-list-view" />
        </referenceContainer>

Removed .category-list-view container and replaced .column.main (not ideal, but we don't use category desc and category img) instead in elasticsuite-ajax.js, default sort is working again.

rensieeee commented 2 years ago

Can confirm this issue breaks manual sorting on virtual categories as well.