pixelant / pxa_product_manager

Product Manager. Allow to create and list products on a site. Create dynamical attributes for products. Filter by categories and attributes
11 stars 12 forks source link

[BUG] Sorting "Product Renderer" List not working #386

Closed bh-teufels closed 1 year ago

bh-teufels commented 1 year ago

Describe the bug The Sorting of Plugin "Product Renderer" in List-View is not working. Either the Setting in the plugin nor if the sorting is changed in the dropdown

<sorting :options="{orderBy}" :settings="{settingsJson}"></sorting>

if i change the sorting in the dropdown the url changes "correctly" orderBy=name&orderDirection=asc

if i select the ordering i set in the plugin the sorting part gets removed from the url

The sorting seems to be after uid and did not get changed.

i use the orderby setting in the TS Setup provided by the Extension.

Environment:

bh-teufels commented 1 year ago

if i add $this->addOrderings($queryBuilder, $demand); to the createDemandQueryBuilder inside the ProductRepoistory.php the sorting works

MattiasNilsson commented 1 year ago

@bh-teufels It works but you need to include TypoScript from the extension demander that is a dependency.

Screenshot 2022-11-30 at 13 16 08