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

Topic summary

A Shopify merchant needs to sell sports jerseys with conditional variant options and inventory tracking. Specifically, they want customers to first select a size (Medium or XL), then choose from size-specific jersey numbers (1-20 for Medium, 21-45 for XL), with individual inventory quantities tracked for each number.

Current Challenge:
The merchant has tested approximately 6 apps but none provide the needed functionality. Apps either:

  • Lack inventory quantity input for each specific number variant
  • Don’t restrict number ranges to their respective sizes (making all 45 numbers available for both sizes)

Proposed Solution:
A support representative from EasifyApps suggests using custom code instead of a third-party app:

  1. Create the product with two options (Size and Number) and define all variants
  2. Remove unavailable combinations (e.g., Medium 21-45, XL 1-20)
  3. Add custom Liquid code to the theme’s product template to automatically hide unavailable variant combinations

This approach would display only numbers 1-20 when Medium is selected, and 21-45 when XL is selected, while maintaining individual inventory tracking for each variant.

Summarized with AI on November 15. AI used: claude-sonnet-4-5-20250929.

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.