We need this thread.
I have this that works great for products but need it for categories.
<mvt:if expr="l.settings:product:customfield_values:custom fields:magic EQ '1'">
But for categories, this does not work....
<mvt:item name="toolkit" param="customcategory|cattemp|l.all_settings:categ ory:id|cattemplate" />
<mvt:if expr="NOT ISNULL g.cattemp">
<mvt:if expr="l.settings:category:customfield_values:custo mfields:cattemp EQ '1'">
1 does this
<mvt:elseif expr="l.settings:category:customfield_values:custo mfields:cattemp EQ '2'">
2 does this
<mvt:elseif expr="l.settings:category:customfield_values:custo mfields:cattemp EQ '3'">
3 does this
<mvt:else>
Default should do this
</mvt:if>
</mvt:if>
I have this that works great for products but need it for categories.
<mvt:if expr="l.settings:product:customfield_values:custom fields:magic EQ '1'">
But for categories, this does not work....
<mvt:item name="toolkit" param="customcategory|cattemp|l.all_settings:categ ory:id|cattemplate" />
<mvt:if expr="NOT ISNULL g.cattemp">
<mvt:if expr="l.settings:category:customfield_values:custo mfields:cattemp EQ '1'">
1 does this
<mvt:elseif expr="l.settings:category:customfield_values:custo mfields:cattemp EQ '2'">
2 does this
<mvt:elseif expr="l.settings:category:customfield_values:custo mfields:cattemp EQ '3'">
3 does this
<mvt:else>
Default should do this
</mvt:if>
</mvt:if>
Comment