vtex-apps / store-discussion

VTEX IO store builders' community
80 stars 5 forks source link

order-by.v2 does not work with search-result-layout.customQuery #666

Closed brunotda closed 2 years ago

brunotda commented 2 years ago

Describe the bug order-by.v2 not working with search-result-layout.customQuery

To Reproduce Steps to reproduce the behavior:

  1. Create a custom page with search-result-layout.customQuery and order-by.v2
  2. Access the page
  3. Click on the Order By element and change
  4. The url is changed, but the ordering is not applied.

Expected behavior Order the products on the page

Maik3345 commented 2 years ago

@brunotda we have the same problem, do you find any solution for this?

iago1501 commented 2 years ago

Hello @brunotda , probably this is related to the search context,

search-result-layout must be a block of store.custom, they can't use flex layouts under there, it's important to have it, it's a normal issue that we usually have, so, without more details this is the most i can give. So, as an example:

store.custom#test{
  "blocks": {
  "search-result-layout.customQuery...."
  }
}