commercetools / sunrise-spa

SUNRISE shop template as a single-page application
https://sunrise-spa.now.sh
Apache License 2.0
51 stars 78 forks source link

Setup sale category #130

Open skyriakou opened 5 years ago

skyriakou commented 5 years ago

What? Virtual category to aggregate sales products

Why? So that sale products get inserted in the right category with a predicate instead of adding them manually

Eg. When Sale category is selected in the navigation all products with discounts will appear in the category even though they are not assigned to the category.

lauraluiz commented 5 years ago

Consider having these "special filtering" in Sunrise Data, adding it to e.g. a custom field. Then from Sunrise SPA if this custom field exists it will use it for filtering, otherwise it will behave normally (fetching the products in that category).