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

Handle out of stock #149

Merged
merged 6 commits into from
Oct 8, 2018
Merged

Handle out of stock #149

merged 6 commits into from
Oct 8, 2018

Conversation

chiumax
Copy link
Contributor

@chiumax chiumax commented Oct 5, 2018

Fix issue #124

Nice to know you guys have already planned ahead and already styled the button when disabled.
Also, should the button be disabled if all sizes are unavailable? I mean if it didn't users still couldn't add items to the shopping cart.

Sorry for making so many commits.

@chiumax chiumax requested a review from jlengstorf October 5, 2018 23:30
Copy link
Contributor

@jlengstorf jlengstorf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great work, @dumblole! Thanks so much for putting this together. I added a bit of extra code to change the button text when products with no variants are out of stock.

Thanks again!

@jlengstorf jlengstorf merged commit 2c2984d into gatsbyjs:master Oct 8, 2018
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.

2 participants