[IMPORTANT] Create a custom template necessary for the correct functioning of the application (SpurIT Wholesale Pricing)
Instruction for a merchant to add a custom template required for the correct functioning of the application:
Go to the theme template editing section:
In the left menu, select Sales Channels → Online Store.
On the
Themespage, click the button with three dots and select theEdit Codeitem.
Click
Add new templatein the left list under the Templates group heading.In the Template type drop-down list, select cart, then
liquid, and addspurit-items-collectionsto the filename field.
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 -%}]Click
Savebutton.