{% for item in props %} {% set propertyValue = __SELF__.variantPropertyValues[item.property.id] %} {% if item.property.id == __SELF__.product.group_by_property_id %} {# Preset the property used to group the variants. #} {% else %}
{% if item.property.type == 'color' %} {% partial __SELF__ ~ '::properties/color' item=item propertyValue=propertyValue %} {% else %} {% partial __SELF__ ~ '::properties/default' item=item propertyValue=propertyValue %} {% endif %}
{% endif %} {% endfor %}