I am setting up my shop and have around 10 products that I only want customers to be able to add to their orders, if they have ordered a core product e.g. can only order eggs if they have bought a veg box. I don’t want these products to be orderable on their own. Can you recommend how I do this please?
Shopify doesn’t support conditional products natively (e.g. only buy eggs if veg box is in cart so you’ll need one of these approaches:
Use a Bundle App (Easiest Option
Create a bundle like:
Veg Box + Optional Add-Ons Eggs, etc.
Many bundle apps allow:
Required base product
Optional add-ons
Preventing add-ons from being purchased alone
This is the cleanest solution.
Cart Validation App
Use an app that:
Checks cart contents
Blocks checkout if add-on products are in cart without the core product
This keeps products separate but enforces the rule at checkout.
Custom Code (More Advanced)
You could:
Hide add-on products unless veg box is in cart (AJAX/cart script)
Or block checkout using Shopify Functions (if on Shopify Plus)
Great question, this is a really common setup for stores with core products + add-ons (especially food boxes!).
What you’re describing is essentially conditional add-ons, products that can only be purchased alongside a qualifying “core” product like your veg box.
Here are a few ways to approach this:
1. Use a bundle app with add-on functionality
Some bundle apps let you attach add-on products (like eggs) directly to a core product. The add-ons only appear when the customer is viewing or has added the veg box to their cart. This keeps things clean and prevents standalone purchases.
2. Hide products from your main catalog
You can set your add-on products to not appear in search or collections, then only surface them via a bundle or upsell widget tied to the core product. Customers won’t find the eggs on their own, but they’ll see them when buying the veg box.
I’m from Simple Bundles and we support this kind of setup, you could create your veg box as the main product with eggs, dairy, etc. as optional add-ons that customers select before adding to cart. But definitely explore what works best for your store!
Set up a custom page like a normal product page, but hide the Add to Cart and Buy Now buttons so customers can’t purchase them standalone (without effecting other products)
One simple way to handle this would be to offer those items as add-ons rather than selling them as standalone products. You might want to check out Easify Custom Product Options
To help you visualize it, I’ve created a similar demo:
Instead of allowing customers to purchase eggs directly, you can display them as optional add-ons on your Veg Box product page. In the app, you can create Checkbox options such as “Add Eggs”, “Add Milk”, or “Add Bread”, then use the Product Add-ons feature to link the corresponding products.
When customers select these checkboxes, the add-on products are automatically added to the order together with the Veg Box. This makes it easy for customers to include related items while purchasing the core product, while also helping ensure that those products aren’t purchased on their own.
What I like about this approach is that it’s quick to set up, doesn’t require complex coding, and can naturally increase your average order value by presenting relevant add-ons directly on the core product page.
Since you have around 10 add-on products that should only be purchased alongside a core product (such as Eggs only being available with a Veg Box), the simplest and most reliable approach is to use a product dependency/cart validation app. If you’re looking for a seamless long-term solution and your Shopify plan supports it, a custom implementation using Shopify Functions can enforce this rule both in the cart and at checkout. That way customers can never purchase the add-on items on their own.