Hey there!
Here’s my scenario, I have a sweatshirt that I want to auto-add to cart as a gift if they spend over $75 but since it is a sweatshirt I would need them to select the size. I have done something like this in the past but not with a variant selection variable. Anyone have any experience with this?
Thanks,
Sean
Please refer to the below URL to get the product api usage
https://shopify.dev/docs/api/ajax/reference/product
Get your desired product data using Ajax
Then you will have the list of available variant.
Create custom HTML block to show the variants list to user.
When user select the option you will have variant I’d needed to add item in cart.
Hope this will help…
Hi @SeanHebein,
To add a gift to the cart when customers spend over a specific amount (in your case, $75), while still allowing them to choose the gift product variant (such as size), you can use the “Spend X Amount to Get Gift” offer in the BOGOS App.
This setup lets customers select their preferred variant before the gift is added, ensuring a better experience.
Here’s how it might look on the storefront:
And here’s how you can set it up: