A user sought to hide unavailable product variants completely instead of displaying them with strikethrough styling on their Origin theme store.
Initial Problem:
When selecting ‘Print Only’, the ‘Framed’ variants remained visible but struck out
User wanted unavailable options to disappear entirely when incompatible variants were selected
Solution Process:
Initial suggestion involved modifying product variant-picker.liquid and adding CSS for Dawn theme, but this didn’t work for Origin theme
The working solution required editing product-variant-options.liquid file
Final Implementation:
Add hidden class alongside the existing disabled class for unavailable options
Modify the conditional statement to: {% if option_disabled %} class="disabled hidden" {% endif %}
No additional CSS needed since the hidden class already exists in Origin theme
Outcome:
The issue was successfully resolved. The user confirmed the solution worked after receiving step-by-step screenshots showing exactly where to add the code modifications.
Summarized with AI on November 2.
AI used: claude-sonnet-4-5-20250929.
Is there any way I can have the product variants completely disappeared when one is selected rather than being striked out? Please see the screenshot below.
It will require a small amount of custom work. You will need to add some conditions to your product variant-picker.liquid file. You can find it in Edit Code.
Below is an example of how it works.
In Dawn theme, the original code is:
{%- unless product.has_only_default_variant -%}
Substitute for:
```markup
{%- unless product.has_only_default_variant -%}
And add class to **base.css**
```markup
.variant-selects--sold-out {
display: none;
}
Hi @BlackUmbrella , thank you for your response. I am actually using Origin Theme but I was able to find the product variant-picker.liquid under Snippets. However, nothing really changes even if I updated with new codings.
I wondered if it didn’t work because it’s ‘unless sold out’ but still nothing changes but stays as strike out even if product quantity is zero. The condition is not Sold Out but unavailable for variants.
You can see in your code below, if you add a class “hidden” in the right place, the selections disappear.
Remember to save a backup of your files. You need a condition that applies the class hidden if the product is sold out or unavailable.
Since the class hidden already exists in your theme, you don’t need the variant-selects–sold-out class.
I am actually beginner or not even a beginner, I don’t quite understand things too much. Yours look great but can you tell me exactly where I need to replace from the beginning? I am a bit confused.
I added the new code for product-variant-options.liquid just as before as you written in the reply but I don’t think it’s applying.