Cart Trigger & Number

Topics in this article

 

Cart Trigger

Cart Number (Counter)

 

  


Cart Trigger

  1. Make sure you already added an Add to cart button.
  2. 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.
  3. Add a custom attribute to the Div Block with the following values:
    • Name: shopify
    • Value: Cart 

 

 

 cart_01.jpg

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)

  1. Create a Text Block.
    • Keep this Text Block simple, do not add any element inside the Text Block.
  2. Add a custom attribute to the Text Block with the following values:
    • Name: shopify
    • value: number

 

 

number_01.jpg

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.

 

Have more questions? Submit a request