All things Shopify and commerce
I have a product I make, that I want to track inventory for.
I offer it with two different sizes of glass ware, that I do not want to track inventory for.
Can anyone recommend a way, or a free app, that lets me track the inventory of the main product, while still offering two options, that do not affect the main inventory numbers?
Solved! Go to the solution
This is an accepted solution.
Something like my screen shot? Pattern is based on variants, which would track inventory, and the second selection says: select a glassware size, that is customise liquid code, which just displays the option, and when the customer chooses one of them, their choice gets recorded and will show up in cart and order. But there is no inventory for these.
My liquid code at the bottom will achieve this when you paste it in a custom liquid block.
You can try it out and play it around with your own store to see if this is what you want. Make sure you add to cart to see if the custom message shows up.
:
<fieldset class="js product-form__input">
<legend class="form__label">Select a glassware size:</legend>
<input class="{{section.id}}" type="radio" id="3oz" name="properties[Size]" value="3oz"
checked form='product-form-{{section.id}}'>
<label for="3oz">3 Oz</label>
<input type="radio" class="{{section.id}}" id="5oz" name="properties[Size]" value="5oz" form='product-form-{{section.id}}'>
<label for="5oz" >5oz</label>
</fieldset>
Do you mind elaborate the use-case here? Do you have an inventory for each of the size or you don't care at all? So what happens when the customer chooses one of the sizes? For example, let's say you have 10 in stock, linked to the main product. When someone buys size 1, the stock goes down by 1? And now you have 9. And then when someone buys size 2, the stock goes down by 1 again?
If there is no restriction on how many size 1 or size 2 that are available, I would suggest to add one product for the main product that you want to track inventory. And then you can add custom options for the customers to choose when they select the product, i.e. size 1 or size 2. Depending on your theme, if you are on Shopify 2.0 theme, you can achieve this quite easily by using a custom liquid block on product page.
For example the code block below would give you an customisable option. But this would only work on Shopify 2.0. themes.
-------------------
<fieldset class="js product-form__input">
<legend class="form__label">Select a glassware size:</legend>
<input class="{{section.id}}" type="radio" id="size1" name="properties[Size]" value="size1"
checked form='product-form-{{section.id}}'>
<label for="size1">Size1</label>
<input type="radio" class="{{section.id}}" id="size2" name="properties[Size]" value="size2" form='product-form-{{section.id}}'>
<label for="size2" >Size2</label>
</fieldset>
----------
This is exactly where I'm trying to wrap my head around now - I use the Craft theme, which I believe to be a 2.0 theme.
We make flight boards. We stock several designs and wood types of them that all need stock tracking.
We sell them with glasses - 3oz or 5oz.
We need to track the flight boards, but not the glass ware.
As I'm typiing it out - the IDEAL is a way to have ONE option that does track stock (5 maple, 5 walnut) - and some kind of non-stock check box for each glass ware size - 3oz or 5oz
This is an accepted solution.
Something like my screen shot? Pattern is based on variants, which would track inventory, and the second selection says: select a glassware size, that is customise liquid code, which just displays the option, and when the customer chooses one of them, their choice gets recorded and will show up in cart and order. But there is no inventory for these.
My liquid code at the bottom will achieve this when you paste it in a custom liquid block.
You can try it out and play it around with your own store to see if this is what you want. Make sure you add to cart to see if the custom message shows up.
:
<fieldset class="js product-form__input">
<legend class="form__label">Select a glassware size:</legend>
<input class="{{section.id}}" type="radio" id="3oz" name="properties[Size]" value="3oz"
checked form='product-form-{{section.id}}'>
<label for="3oz">3 Oz</label>
<input type="radio" class="{{section.id}}" id="5oz" name="properties[Size]" value="5oz" form='product-form-{{section.id}}'>
<label for="5oz" >5oz</label>
</fieldset>
This looks PERFECT - I'll see if I can figure out how to implement it - thank you!
No problem. Just set up the product variants for the ones you want to track inventory first. And then go to theme editor, and add block, and choose custom liquid. Then copy and paste my code from the 2nd reply, since that is more customised to 5oz and 3oz, and then hit save. Should be as simple as that.
Let me know if you need more help. Best of luck!
You nailed it 🙂 Thank you!
This is it in use. I had to add a custom product template for it.
looks good! 😃
Hello there,
I just came across your post. I'm dealing with exactly the same thing. Would you please be so kind as to advise me as well? Many thanks in advance!
E.
Hi @EliskaM,
Could you share some more details about your situation, like the products and options you're dealing with?
Hi @BeesBoards,
While you've already found a solution, I'd like to suggest a simpler alternative that doesn't require any coding. This way, if you encounter a similar issue in the future, you can consider this approach. You can utilize the free Easify Product Options app to create Size options within it, rather than as Shopify variants. This way, the size options won't impact your main product's inventory 🤗.
Here's how to set it up with the app:
Give it a try, the app is incredibly user-friendly 🙌!
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024