How do we change the default sort for just one category?
For example, IMHO a new products category should by default be sorted by the newest first.
But perhaps we want the rest of the store in display order (I'm guessing that is what the default setting in on the CTGY template) or bestsellers?
Logically since we want the most categories sorted by bestsellers, I would use that setting on the CTGY template.
To get new-products to default differently... I saw the default_sort variable. and thought I could use that to override the default on the new-products category.
But that didn't work. It is still defaulting to the CTGY setting, bestsellers.
I tried putting the following SMT code in the ctgy header, ctgy page, and ctgy category listing . It didn't do any good in any of those places.
<mvt:if expr="(l.settings:category:code EQ 'new-products')"><mvt:assign name="l.settings:category_listing:default_sort" value="'newest'"/></mvt:if>
So how do I do this?
For example, IMHO a new products category should by default be sorted by the newest first.
But perhaps we want the rest of the store in display order (I'm guessing that is what the default setting in on the CTGY template) or bestsellers?
Logically since we want the most categories sorted by bestsellers, I would use that setting on the CTGY template.
To get new-products to default differently... I saw the default_sort variable. and thought I could use that to override the default on the new-products category.
But that didn't work. It is still defaulting to the CTGY setting, bestsellers.
I tried putting the following SMT code in the ctgy header, ctgy page, and ctgy category listing . It didn't do any good in any of those places.
<mvt:if expr="(l.settings:category:code EQ 'new-products')"><mvt:assign name="l.settings:category_listing:default_sort" value="'newest'"/></mvt:if>
So how do I do this?
Comment