- Open the sales-ticker-widget.liquid file for editing.
- Paste the following code into the snippet file:
{%- capture collectionIdArr -%}
{%- for collection in product.collections -%}
{{- collection.id -}}{%- unless forloop.last -%},{%- endunless -%}
{%- endfor -%}
{%- endcapture -%}
<div
{% if pageType == 'product' %}
class="product-sale-widgets-product-wrapper"
{% else %}
class="product-sale-widgets-collection"
{% endif %}
data-product="{{ product.id }}"
data-tags="{{ product.tags | join: ',' }}"
data-collections="{{ collectionIdArr }}"
data-variant="{{ product.selected_or_first_available_variant.id }}"
></div>