Closed gil-- closed 5 years ago
Merging since preview builds successfully. Still more work to be done per PR comment but like everything, WIP.
Hi @gil-- , I'm trying to get this variant selector working with multiple product options. All options can be combined and have different prices and images. I'm struggling to set the state based on the first options and handling the option change with finding the right variant. Do you have a good suggestion? The first two are custom radio buttons and the third is a textual option select input.
options = [{ name: "Frame", values: ["Black", "White"] }, { name: "Saddle", values: ["Brown", "Black"] }, { name: "Accu", values: ["Standard", "Extended"] }]
Lots more work needs to be done here:
Most of this code was ripped from Shopify graphql example: https://github.com/Shopify/storefront-api-examples/tree/master/react-graphql-client