V
V
Vitaly2020-09-29 18:28:33
MODX
Vitaly, 2020-09-29 18:28:33

How to sort products in minishop2 via msearch/mfilter?

Greetings!

You need to configure the sorting of products in the catalog using the mfilter add-on.
There are three options: popular, new and by price. Sorting by price somehow managed to be solved (data-sort="ms|price"), but with others - difficulties.

You need to output with respect to these options: That is, if the product has a designation as " new ", it goes up
5f735300de0c2422469362.jpeg

, and products without it go down. nothing happened, they were displaying the same products . Thanks in advance for all the help! :)



5f7351efc9150929350280.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Danny Arty, 2020-09-29
@vnem

Add to mFilter2 call

&sort=`ms|price:desc, ms|popular:desc, ms|new:desc`

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question