I would like to be able to hide variants that are not available (out-of-stock). Currently they are grey and not selectable. But I want to make sure these out-of-stock variants are not visible at all.
What do I need to do? I am using theme Symmetry.
Goal: Hide out-of-stock product variants in the Symmetry theme (instead of showing them greyed out and unselectable).
Proposed solution: Add a CSS rule to the theme to remove unavailable options from the variant selector:
Outcome: The original poster confirmed this CSS worked to hide unavailable variants.
Recent update / issue: Another user on Symmetry 7.2.1 reports there is no styles.css file in Assets and asks how to proceed.
Status: Partially resolved. The CSS approach is validated, but for Symmetry 7.2.1 the exact file/location for adding the CSS is unclear in the thread. No alternative file path or method was provided, leaving an open question on where to place the CSS in newer theme versions.
I would like to be able to hide variants that are not available (out-of-stock). Currently they are grey and not selectable. But I want to make sure these out-of-stock variants are not visible at all.
What do I need to do? I am using theme Symmetry.
Hi @ArneSchuilenga ,
Go to Assets > styles.css and paste this at the bottom of the file:
.cc-select__option.is-unavailable {
display: none !important;
}
Yes this worked. Thanks !
@LitExtension I have a potentially complex question for you on symmetry. I will attempt to create new question and tag you or send you link.
xx Jvw
There is no file in this theme (7.2.1 Symmetry) in the Assets page called styles.css
So what to do?