-
I'm selling products in my store with multiple sizes (S, M, L, etc.). The smallest size (S) is often out of stock. How can I set the default size to "M" without rearranging the options? What's the best way to do this? 🙇🏽♂️ |
Beta Was this translation helpful? Give feedback.
Answered by
blittle
Jul 9, 2024
Replies: 1 comment
-
Update the logic here to pick a default variant. By default it just picks the "first variant": https://github.com/Shopify/hydrogen/blob/main/templates/skeleton/app/routes/products.%24handle.tsx#L57 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
blittle
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update the logic here to pick a default variant. By default it just picks the "first variant": https://github.com/Shopify/hydrogen/blob/main/templates/skeleton/app/routes/products.%24handle.tsx#L57