Topics in this article
Cart Trigger
- Make sure you already added an Add to cart button.
- Create a Text Block (or any other element, but not a link Block), or you can use any other element that you already have in your project.
- Add a custom attribute to the Div Block with the following values:
- Name: shopify
- Value: Cart
Add Attribute (Name: Shopify, Value: Cart)
This is just a sample Div Block with a simple Text Block in it, you can give this attribute to any object as long as it is not a Link Block.
Cart Number (Counter)
- Create a Text Block.
- Keep this Text Block simple, do not add any element inside the Text Block.
- Add a custom attribute to the Text Block with the following values:
- Name: shopify
- value: number
Add Attribute (Name: Shopify, Value: Cart)
Do not create more than one cart trigger in each page.
You can simply create a trigger, make it a symbol and use it in all pages, that way you will be able to edit it on any page you want and it applies to all the pages.