Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SKU selector #2254

Merged
merged 2 commits into from
Mar 11, 2024
Merged

Fix SKU selector #2254

merged 2 commits into from
Mar 11, 2024

Conversation

gvc
Copy link
Contributor

@gvc gvc commented Mar 8, 2024

What's the purpose of this pull request?

When implementing the Variant Swatch Image I noticed that if a SKU Selector had only one option the image would not appear. Upon inspecting this hook I noticed that if there's ony one image the code would infer they were all the same and only show the label, but there's the special case of only one image. This PR fixes this.

How to test it?

Go to the preview and see the awesome-chair product and switch to the Plastic or Iron material SKUs. You should see an image on the Size selector. On the starter store awesome-chair will not show the image.

Copy link

vercel bot commented Mar 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
faststore-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 8, 2024 8:21pm

Copy link

codesandbox-ci bot commented Mar 8, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@gvc gvc marked this pull request as ready for review March 8, 2024 20:57
@gvc gvc requested a review from a team as a code owner March 8, 2024 20:57
@gvc gvc requested review from hellofanny and lariciamota and removed request for a team March 8, 2024 20:57
@gvc gvc merged commit c457796 into main Mar 11, 2024
7 checks passed
@gvc gvc deleted the fix-sku-selector branch March 11, 2024 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants