A variant displays as unavailable if quantity on hand equals zero. I need to be able to specify a different threshold that applies to all variants. For example, I want variants to show unavailable if SKU quantity on hand goes below three. This is to counter inventory tracking problems with my vendor that lead to sales for which they have no stock.
I realize this is likely a customization. Any have thoughts re: an approach? Thanks.
Hey
Yeah, it’s definitely a customization. As for an approach, there are two ways I am currently thinking that should solve your problem.
The first is using flow and theme customization. For the flow part, it would check if your variant’s inventory went below or equal to 3, if it matches then it will update a variant’s metafield. That metafield would be responsible for marking the variant as unavailable on the online store - which requires theme customization. The downside of this is that this will apply to all products and variants. So, everyone whose variant went below or equal to 3 will be marked unavailable on the online store.
The next option will just require theme customization and metafields. The metafield is responsible for setting the threshold, it will be a number metafield and whatever number you place in this metafield, if it goes below that number, it will mark the product unavailable on your store - via theme customization. The downside of this is that you’ll need to manually set each metafield on each variant, but the upside of this is that you’ll be able to have different threshold for different variants.
Hope this made sense, and if you need me to help you with this or if you have any questions, feel free to let me know.
1 Like
Thanks for the reply, Paul. These are two great approaches. I’ll look into the first approach as I want to apply the same threshold to all products/variants.
1 Like
Hi Paul, I can handle the Flow and metafield for this. Would you be able to help with the customization for option 1 above? Thanks.
Hi @Glow_Up_Fits , sure thing, leave it to me!
Just want to let you know though, I won’t be able to help right away as I am currently busy with the clients I am having. I’d like to prioritize them before I help others for free. Is that okay with you?
That’s fine. One key item to note, we need to change variant on-hand quantity to 0 and let the resident logic make it unavailable. Otherwise, my automated Collection logic “Inventory stock is greater than 0” doesn’t work.
I sent you an email with details. When do you think you’d be able to start? Thanks.