Liquid, JavaScript, themes, sales channels
Using the turbo theme.
We have an item say a girth, you can buy black or brown, then select a size. But to buy this item you have to add a liner to it which could be neoprene, fleece or leather. You can't technically buy the girth without a liner but some people will want to change and swap liners. So currently they can select the girth e.g 48" Cinch in brown. I want them to not be able to add to cart unless they have picked 48" cinch in brown with a 48" leather or fleece liner.
Hi @SADDLES7779 ,
We can write a script which will check the current cart data and check if related item is in cart.
If item not exist alert the user to add the related item in cart and disable the checkout buttons.
If you understand the code please refer the below URL to impliment the same.
https://shopify.dev/docs/api/ajax/reference/cart
User | RANK |
---|---|
37 | |
28 | |
13 | |
13 | |
9 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023