I am displaying text based on product category…the product is in both categories, but only displaying for “Fiberglass Rolls and Strips” collection.
How do i fix th
{% for collection in product.collections %}
{% if collection.title == 'Vacation' %}
| **Current Stock** |
| - |
| <br> <br> <br><br> {%- for variant in product.variants -%}<br> {%- if variant.inventory_quantity > 0 -%}<br> - {{ variant.title }} - {{ variant.inventory_quantity }} in stock<br> {%- endif -%}<br> {%- endfor -%}<br> <br><br> <br> |
{% break %}
{% endif %}
{% endfor %}
{% for collection in product.collections %}
{% if collection.title == 'Fiberglass Rolls and Strips' %}
| **Current Stock** |
| - |
| <br> <br> <br><br> {%- for variant in product.variants -%}<br> {%- if variant.inventory_quantity > 0 -%}<br> - {{ variant.title }} - {{ variant.inventory_quantity }} in stock<br> {%- endif -%}<br> {%- endfor -%}<br> <br><br> <br> |
{% break %}
{% endif %}
{% endfor %}