You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.
From vue-storefront created by PandaTawer3: vuestorefront/vue-storefront#4028
I am trying to add a category filter to layered navigation such as in Magento 2.
I added a new property to defaultFilters on config/local.json "defaultFilters": [ "price", "category_ids" ],
Also, I added this to elastic.schema.product.json "category_ids": {"type": "integer"},
I rebuilt container but when I try to go to category page I see the error that "Products don't synchronous for this category"
In field "category_ids" value like as 1682.
What can I do? Or maybe all my steps are wrong? I need to do it
UPD: I also tried to add a category to defaultFilters and add it to productList->includeFields and productListWithChildren->includeFields. No one errors but results are not shown too.
The text was updated successfully, but these errors were encountered:
I think the problem is the way categories are indexed. For other attributes you have attribute: [1,2] and attribute_value: ["label","second label"] but for category_ids this does not apply as there is no field for category_ids_value, so the aggregation building fails.
It would indeed be a great feature to have.
Hi @pkarw
Were you able to find a resolution here?
This is really important feature in the need for a good user experience.
I see you have closed similar task here #3980 but we are not able to implement it by solution provided by you there and in this issue.
From vue-storefront created by PandaTawer3: vuestorefront/vue-storefront#4028
I am trying to add a category filter to layered navigation such as in Magento 2.
I added a new property to defaultFilters on config/local.json
"defaultFilters": [ "price", "category_ids" ],
Also, I added this to elastic.schema.product.json
"category_ids": {"type": "integer"},
I rebuilt container but when I try to go to category page I see the error that "Products don't synchronous for this category"
In field "category_ids" value like as 1682.
What can I do? Or maybe all my steps are wrong? I need to do it
UPD: I also tried to add a category to defaultFilters and add it to productList->includeFields and productListWithChildren->includeFields. No one errors but results are not shown too.
The text was updated successfully, but these errors were encountered: