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
Checking Shopify documentation (here)[https://shopify.github.io/js-buy-sdk/product-helpers.js.html#line6] variant it is not what variantForOptions expect as the second argument but more an object like that
{
size: "Small",
color: "Red"
}
So maybe something like that can work and fix the issue
I was testing the
variantForOptions
when I find out it is alwaysundefined
so this linegatsby-starter-shopify/src/pages/products/{ShopifyProduct.productType}/{ShopifyProduct.handle}.jsx
Line 48 in 66d9909
always assign the second part (
variant
),Checking Shopify documentation (here)[https://shopify.github.io/js-buy-sdk/product-helpers.js.html#line6]
variant
it is not whatvariantForOptions
expect as the second argument but more an object like thatSo maybe something like that can work and fix the issue
If you wanna try it yourself just fork this repo and print the helpers with a console.
The text was updated successfully, but these errors were encountered: