Product Group List
The product_groups
object describes a list of product groups in the store. Use this object to access all product groups or just the root product groups.
Usage Example
{%- comment -%} List all product groups {%- endcomment -%}
<ul>
{% for group in product_groups.all %}
<li>{{ group.title }}</li>
{% endfor %}
</ul>
{%- comment -%} List only root product groups {%- endcomment -%}
<ul>
{% for group in product_groups.root %}
<li>{{ group.title }}</li>
{% endfor %}
</ul>
Properties
all
List all available product groups in the store.
root
List root product groups in the store.
size
Returns the number of product groups in the list.
Last updated on