Hello community.
I am trying to skip the limit of 99 variants in a store under development, for this I have this code:
{% for tag in product.tags %}
{% if tag contains 'model_' %}
{% assign related_variant = tag %}
{% assign is_model = true %}
{% endif %}
{% endfor %}
{% assign current_product = product.handle %}
{% if is_model %}
{%- paginate collections.all.products by 1000 -%}
{%- for product in collections.all.products -%}
{%- if product.tags contains related_variant -%}
-
{%- endif -%}
{%- endfor -%}
{%- endpaginate -%}
{% endif %}
an example of the model tag: model_WEARGOS26
i am trying to get all the products by a tag starting with “model_” but it is not working, any advice.
greetings