I have the sort option on category pages and wanted to add the ability to sort by a custom product field. I have tried the following but it lacks something:
<mvt:if expr="g.Sort_By EQ 'customfield_values:customfields:brand'">
<option value="brand" selected="selected">Brand</option>
<mvt:else>
<option value="brand">Brand</option>
</mvt:if>
If someone could point me in the right direction it would be greatly appreciated. Thank you.
<mvt:if expr="g.Sort_By EQ 'customfield_values:customfields:brand'">
<option value="brand" selected="selected">Brand</option>
<mvt:else>
<option value="brand">Brand</option>
</mvt:if>
If someone could point me in the right direction it would be greatly appreciated. Thank you.
Comment