Hi everyone,
I'm building an e-commerce site using Minishop2 and need to add a field with sorting by price.
Does anybody know how to do that?
I know there is such a possibility with mSearch2 module, but it's paid.
I tried something like that but it's not working:
<a href="[[~[[+id]]]]&sortby=Data.price&sortdir=[!sortdir? &sortby=`Data.price` &sdir=`ASC`!]">Price</a>
I sorted the products on the page like this:
[[!msProducts?
&sortby=`{
"price":"desc"
}`]]
and it just shows me the products on the page from lower to higher price (or from higher to lower price with
price:asc), but how can I make it with choosing both of the options as sorting link on the page, respectivly from lower to higher price and from higher to lower price?