Hi,
So using the Repositories / Indexes I've querying products for at specific group that I want to sort by price (Asc/Desc) and show them in the frontend.
That works fine until there are some of these products that are discounted.
It seems like it is sorting by the original price and not by the discounted price which messes up the order.
Eg. when I sort by Price - Desc I get this.
- Product A - 1000 DKK
- Product B - Discountprice: 700 DKK (Original price 900DKK)
- Product C - 800 DKK
- Product D - 500 DKK
Am I missing something?