You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Suggestion] Differentiate single product vs product with variants #29
I know Shopify handles single products as products with one variant, but there is no way to differentiate an imported product that is single vs one that has variants (ie even just one)
In our case we are displaying information from the variant in our content / description such as it's title and at the moment the only way to tell if a product is single is by the variant title being set to "Default Title" which I don't know is a great idea either? this should probably just be the product title again? or null?
Anyway my suggestion is to add something like has_variants: false to the product yaml.
Activity
jackabox commentedon Apr 5, 2021
If the variant has one only option, this would be a single product. Shopify sets this to Default Title and is handled on their side via the import.
A variant is still required to get all the price and stock information, so every product has variants.