Auto-add product to cart but have customer select variant

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:

Hey there!

The offer scenario you described can be set up using the Monk Free Gift, BOGO & Upsell app on the Shopify App Store.

With Monk, you can create an offer where the customer needs to reach a cart value of $75 or any threshold you prefer. Once they reach that amount, the sweatshirt can be offered as a free gift. Since the sweatshirt has multiple sizes, you can also configure the offer to let the customer select the size or variant they want before the gift is added to the cart.

Monk also allows you to auto remove the gift item if the cart is no longer eligible, so if the customer removes some products and their cart value drops below $75, the free gift will automatically be removed from the cart.

To make sure customers don’t miss the offer, you can also combine it with a tiered progress bar on the cart or product page. This can encourage customers to spend more to unlock the free sweatshirt.