Looking for app that allows conditional variants with inventory tracking for all options

Hi, I was looking for an app that would allow us to have a conditional option for specific variants of two different size shirts, that would also allow us to input and track inventory of those specific variants.

For example, we have a product: Sports Jersey (Blue). This jersey comes in Medium and XL, with the numbers on the jersey 1-20 being Medium and 21-45 being XL. So I need to be able to allow a customer to choose a size, and then have a menu appear to have them choose which number they want (so they can choose Medium, and then check which numbers from 1-20 they need, or choose XL and choose from 21-45).

I’ve found a few apps that, from my short testing, seem to almost have what we need, but either don’t allow the limitation of specific numbers to their respective size (so all 45 numbers would be available to both sizes, which won’t work), or, in the case of all apps I’ve tried, maybe 6 by now, don’t have an option to input inventory quantities for every number. We may only have a few of Medium #16 in stock, but I haven’t found an option on any app yet to be able to input this info.

Hi @ChrisCost ,

You may not require a third-party app to achieve this. Instead, you can implement custom code in your theme to hide unavailable combinations of variants. Follow the steps below to accomplish this :blush: :

  1. Start by creating your Sports Jersey (Blue) product. Add 2 options - “Size” and “Number”, and define your variants accordingly (e.g., size M, XL, and numbers 1-45). Remove any unavailable variants, such as M 21-45 and XL 1-20, and specify the inventory for the available variants.

  2. Access your theme editor and navigate to the Products template. In the “Product Information” section, click on “Add block,” and select the “Custom liquid” block.

  3. Now, insert the following code into the Custom liquid field. This code will automatically hide any unavailable variant combinations. As a result, when customers select size M, they will only see numbers 1-20 as their choices. If they choose XL, they will see numbers 21-45.