However without creating classes for my products with calculated parameters. Is there a simple way to sort this by the "effective" Price. So that if it's not on sale it uses the normal price, if it is on sale it uses the Sale Price?
Please let me know if this is available.. Otherwise I would very much like to see this included (or could even add it myself on GitHub?)
Price Sorting
Hi,
I'm trying to implement sorting of a list of products. I have a product list in the form List
However without creating classes for my products with calculated parameters. Is there a simple way to sort this by the "effective" Price. So that if it's not on sale it uses the normal price, if it is on sale it uses the Sale Price?
Please let me know if this is available.. Otherwise I would very much like to see this included (or could even add it myself on GitHub?)
Thanks!
Hey Robert,
There is nothing in the Core to do that at the moment, but that's a really good idea.
It would be a simple extension method to write:
Yes, This solves it nicely, thanks for the quick assistance. I'm loving Merchello.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.