Hello! I am trying to remove a size tag once that particular size is out of stock. I have started the flow but I have gone to test it and it doesn’t seem to be working correctly. I have tried both separating out the sizes into different actions as well as all at once. Does anyone have a solve for this? Thank you!
Topic summary
Goal: Automatically remove a product size tag when that specific size variant goes out of stock (OOS) using Shopify Flow.
Current issue: The workflow doesn’t reliably remove the correct tag. Attempts included separating sizes into different actions and handling them all at once.
Key guidance:
- Add a condition that targets the variant that went OOS; otherwise tags may be removed when any variant is OOS.
- Verify the exact tag string being removed (copy/paste to avoid mismatches).
- Use variant.selectedOptions to identify the option name (e.g., “size”) and its value (e.g., “S”, “M”, “L”). This ensures the logic applies to the correct size.
Setup feedback: An extra third step may be unnecessary, and the conditions panel details are unclear.
Recommended next steps:
- Create a test product variant with the specific size tag, set it OOS, and run the flow to validate.
- Refine the condition to match option name “size” and the target value.
Definitions:
- Variant: A specific combination of product options (e.g., size S).
- Option: Product attribute like size; selectedOptions holds name/value pairs.
Attachments: Screenshots of the Flow setup help illustrate the configuration.
Status: Open; no confirmed resolution yet.
Usually you would have a condition in there to check which variant is out of stock. right now I’d expect this workflow to remove those tags when any variant goes out of stock
Hi @TinaPPPP , you’ll want to confirm the tag you are removing and make sure that it exactly matches the tag on the product. Copy and paste it if possible
Hi Paul,
Thanks for the reply! The condition the flow would have to check is the size variant. Would you know how to add this?
I’m not sure what you mean by a size variant. I think you might mean “option”. Like a product can have a size option with possible values S, M, L. And a single variant would have Size S.
To check which options a variant has the field is under “variant / selectedOptions” where the “name” field would be something like “size” and the value would be “S”.
Hi Paul,
Thanks for the update. Yes, I am meaning size under Option. Does the attached seem to make sense? I feel as if I am missing a step.
I’m not sure why you have that third step in there. Also, not sure about what is in your conditions panel.
Have you tried to run it? You might create a test product variant for this that has that specific tag, and make it go out of stock.

