{% endfor %} {% endif %} {% else %} {% for value in filter.values %} {% if filter.attribute == 'Ready to ship' %} {% assign value_label = translation.filter.ready_to_ship | default: "Ready to ship" %} {% elsif filter.attribute == 'Availability' %} {% if value.value == 1 %} {% assign value_label = translation.filter.in_stock | default: "In Stock" %} {% elsif value.value == 0 %} {% assign value_label = translation.filter.out_of_stock | default: "Out of Stock" %} {% endif %} {% else %} {% assign value_label = value.label %} {% endif %} {% if filter.style == 'Checkbox' %}