K
K
kamisarlapsha2018-09-05 18:26:00
HTML
kamisarlapsha, 2018-09-05 18:26:00

How to display the minimum price of a product in sorting?

Hey! There is a standard opencart 2.3 sorting. Removed all sorting options except price. Immediately, by default, I sorted prices in ascending order. It is necessary that the minimum price of the goods be displayed under the list. And if he selects in descending order, the maximum price was displayed. How can this be implemented?
More or less like this:
5b8ff58714b30627268816.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zoozag, 2018-09-06
@zoozag

The first thing that comes to mind is to make an additional request for 1 product with the necessary conditions in the controller and look at its price. Just keep in mind that you need to compare not only prices, but also special

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question