I've seen a few post on how to count the attributes of a product, such as:
Is there a way to count only non-required attributes? In fact all I really need to know is if there is at least 1 non-required attribute.
If I changed the above code to: value="miva_array_elements( l.settings:attributes:required )" I think it would still return a count since this variable exist for all attributes and is true or false.
Code:
<mvt:assign name="g.attribute_count" value="miva_array_elements( l.settings:attributes )" /> <mvt:if expr="g.attribute_count EQ 0"> There are no attributes <mvt:else> There are attributes </mvt:if>
If I changed the above code to: value="miva_array_elements( l.settings:attributes:required )" I think it would still return a count since this variable exist for all attributes and is true or false.
Comment