Re: Add freebie line item to cart that requires customer input for correct variant

Add freebie line item to cart that requires customer input for correct variant

scottstilson
Tourist
9 1 6

We would like to automatically add a free shirt to the carts of customers who manually add a truck cover to their carts. How can we use Script Editor to elicit the customer’s shirt size so we add the correct free shirt variant to the cart?

Replies 2 (2)

rancet
Tourist
5 0 4

I don't think there is a way of adding new line items to shopping cart using Cart Scripts - they are pretty limited.  

 

You could try using something like "Sales Motivator ‑ Free Gifts"

https://apps.shopify.com/sales-motivator-free-gifts?surface_detail=free+gift&surface_inter_position=...

 

The App store proabably has something that meets your needs or you could develop it yourself.

 

scottstilson
Tourist
9 1 6

Thank you, rancet. The app you point to looks promising.