I have a bunch of products in a password protected private collection. Here is the code for the collection:
{{ product.price | money }}
{% if customer.tags contins ‘private’ %}
{% section ‘main-collection-product-grid’ %}
{% else %}
I have a bunch of products in a password protected private collection. Here is the code for the collection:
{{ product.price | money }}
{% if customer.tags contins ‘private’ %}
{% section ‘main-collection-product-grid’ %}
{% else %}
Use the following code
{%- for product in collection.products -%}
{{ product.price | money }}
{%- endfor -%}
done