Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I want to see if anyone else has something similar set up since I am at a loss right now. I'll try to be as detailed as possible.
I am setting up a bakery website and I want to have a parent item with a set number of available inventory and then sub items with no inventory of their own, but they are referencing the parent item.
So let's say I am baking 100 cookies. I want to have an item with that number as the available inventory. Ideally the customer shouldn't see this item. Then let's say we have the sub items. Chocolate Chunk, Peanut Butter and White Chocolate. The customer will have these options listed and available to add to cart.
Now this is where I am getting confused on how to set it up.
Initial Cookie Count: 100
Customer then purchases 5 Chocolate Chunk, 3 Peanut Butter and 1 White Chocolate.
New Cookie Count: 91
This can go on until the Cookie Count reaches 0, then all items will be shown as Sold Out.
Has anyone encountered this scenario before?
Solved! Go to the solution
This is an accepted solution.
Hi @efidev,
The app Material Manager can help with this. It allows you to create entries for raw materials that are not visible to customers and then link your Shopify variants to these raw materials. When a variant linked to a raw material (or cookie in this case) is sold it will draw down the material inventory and then update the inventory of all variants linked to it.
So for your example you would create a cookie material, then link your Shopify products for Chocolate Chunk, Peanut Butter and White Chocolate to it. Then it would work like your example. When those 9 cookies of different types are sold it will reduce the cookie count by 9. Then update all your Shopify cookie products to have an inventory of 91.
You can also make variants like a box of 6 Chocolate Chunk and 6 Peanut Butter. Then link that variant to specifying it needs 12 cookies to fulfil.
With the help of some custom JavaScript code you can achieve this. I’ve done something similar (not exactly same) for one of my friend
Hi @efidev 👋 this is either the "sub" items are line-item-properties text only as line-item-properties , they don't exist as variants so no inventory , no sku, and no variant data.
Or inventory-sync using apps and the "sub" items are variants with inventory kept in lockstep with a main product/sku's inventory.
https://tasks.mechanic.dev/?q=sync
There's tons of apps for stuff like this like "kit builders", product personalization or other keywords found by researching the forums for various business models.
If you need this type of customization , or automation, then contact me for services or consulting.
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.
Contact paull.newton+shopifyforum@gmail.com for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with a ☕ Coffee for more answers or donate to eff.org
This is an accepted solution.
Hi @efidev,
The app Material Manager can help with this. It allows you to create entries for raw materials that are not visible to customers and then link your Shopify variants to these raw materials. When a variant linked to a raw material (or cookie in this case) is sold it will draw down the material inventory and then update the inventory of all variants linked to it.
So for your example you would create a cookie material, then link your Shopify products for Chocolate Chunk, Peanut Butter and White Chocolate to it. Then it would work like your example. When those 9 cookies of different types are sold it will reduce the cookie count by 9. Then update all your Shopify cookie products to have an inventory of 91.
You can also make variants like a box of 6 Chocolate Chunk and 6 Peanut Butter. Then link that variant to specifying it needs 12 cookies to fulfil.
Hi @efidev,
The Easify Inventory Sync app can help you efficiently manage and track your inventory 🤗. It allows you to create an Inventory Group for products sharing the same stock. When any product in the group is purchased, the inventory change is automatically updated across all products in the group. This means that when the inventory for one product reaches 0, the others are marked as sold out as well.
The app is easy to use, and if you need any help with setup, feel free to reach out to the Easify team.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025