List Products Respect to Discount Percentage

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
Hello,
I try to list products order to discount ratio (old price-new price) but I could not found any service method about it. Is there any method about that?
thank you.
5 years ago
It's not available out of box. The standard installation uses Nop.Core.Domain.Catalog.ProductSortingEnum to implement sort order. You'll need to customize the solution to achieve the custom sort.

Hope that helps.
Best Regards,
Anshul
5 years ago
I prefer this method for this requirement. Maybe someone needs in feature.
I create new table stores calculated product discount percentage. Create new consumer for product entity update/delete/insert and when product has been changed service update/delete/insert to product discount percentage. And I present discounted percentages from that table.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.