I have my CTGY page set to sort by best selling. This makes sense for most of my store except for one category. New Products should sort by the newest.
I want to do something like this on the CTGY template:
but that won't work becuase g.sort-by is set to 'bestselling' by miva.
I also want the customer to be able to set their own sort order if they want. So I can't just force g.sort_by = newest.
I'm using the Readytheme navigation and have the link to ctgy. other wise I'd guess I could link to new-products.html?sort_by=newest
or something like that.
So how do I do this?
I want to do something like this on the CTGY template:
Code:
<mvt:if expr="(l.settings:category:id EQ 'new-products') AND (ISNULL g.sort_by)"><mvt:assign name="g.Sort_By" value="'newest'"/></mvt:if>
I also want the customer to be able to set their own sort order if they want. So I can't just force g.sort_by = newest.
I'm using the Readytheme navigation and have the link to ctgy. other wise I'd guess I could link to new-products.html?sort_by=newest
or something like that.
So how do I do this?
Comment