Hello,
I have a 25 cent product that can only be purchased with the only other product in the store. As in, if it is the only product in the cart the customer is unable to purchase it alone.
Is there an app or code that can do this?
I would appreciate any help!
www.printmylabel.ca password: camishop
Yes, this is possible, but you need an app for it. Shopify doesn’t let you do it natively.
Full disclosure: I built an app called CartGate to solve this problem. It lets you set checkout rules, one of which is “don’t let this item be purchased alone”, which does exactly what you’re asking for. If a product is the only thing in the cart, block checkout. Otherwise, allow checkout as normal.
Here’s how it looks in the checkout page:
Checkout gets blocked with a message you set. It runs on Shopify Functions, so it can’t be bypassed by things like buy-it-now buttons or express checkout (Apple Pay, PayPal, etc.)
The app is paid, but this particular restriction type is completely free.
I know this is a really old post (the store link is dead), but sharing in the hopes that others find it useful.