Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

Instruction for a merchant to add a custom template required for the correct operation of the application:

  1. Go to the theme template editing section:

    1. In the left menu, select Sales ChannelsOnline Store.

    2. On the Themes page, click the button with three dots and select the Edit Code item.

  1. Click Add new template in the left list under the Templates group heading.

  2. In the Template type drop-down list, select cart, then liquid, and add spurit-items-collections to the filename field.

  1. Insert the following content in the editor:

{% layout none %}
[{%- for item in cart.items -%}
{"id": {{item.id}},
"product_collections": {{item.product.collections | json}}
}{%- unless forloop.last -%},{%- endunless -%}
{%- endfor -%}]
  1. Click Save button.

  • No labels