H
H
Hy_ok2017-08-08 11:39:30
opencart
Hy_ok, 2017-08-08 11:39:30

How to add "Discount first" sorting of products?

I figured out how to add the sorting of goods by date, but I can’t figure out how to sort by "first with a discount", Engine version 2.3. was in ascending order from the smallest to the largest price tag, can anyone come across this? I will be very grateful)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
web-mechanic, 2017-08-11
@hy_ok

make order by ps.price ASC
Push this option in the controller and in the product.php model in the function for obtaining information about products in the category and in the function for counting products

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question