Auto add free item when cart reaches X amount


#1

This is an advanced tutorial and is not supported by Justuno. Knowledge of web design languages such as HTML, CSS, Javascript and Liquid is required. We suggest hiring a Justuno Expert if you are not comfortable proceeding with the following tutorial.

There are two steps to this idea that I recently implemented through our managed services plan on a customers site.

The first was an Unobar across the entire site using a JSON variable that tells the customer how much more they need to add to their cart to get the free gift. Once the cart value is reached the item auto adds to the cart. Second, another Unobar that encourages a user to checkout now that they have a free gift in their cart.

In the text of the unobar within the design canvas of Justuno, you would call the value with this code: {{shipping_threshold}}

Here is the code used for this customer, this will NOT work on your site and is only meant as a point of reference!