commerce
commerce copied to clipboard
Add availableForSale to variant
Add to cart
button should be disabled when there's no stock for each variant.
<Button
aria-label="Add to Cart"
type="button"
className={s.button}
onClick={addToCart}
loading={loading}
disabled={variant?.availableForSale === false}
>
{variant?.availableForSale === false
? 'Not Available'
: 'Add To Cart'}
</Button>
@powerwlsl is attempting to deploy a commit to the Vercel Solutions Team on Vercel.
A member of the Team first needs to authorize it.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
commerce-bigcommerce | ❌ Failed (Inspect) | Aug 16, 2022 at 5:53AM (UTC) | |
commerce-commerce | ❌ Failed (Inspect) | Aug 16, 2022 at 5:53AM (UTC) | |
commerce-commercejs | ❌ Failed (Inspect) | Aug 16, 2022 at 5:53AM (UTC) | |
commerce-kibocommerce | ❌ Failed (Inspect) | Aug 16, 2022 at 5:53AM (UTC) | |
commerce-local | ❌ Failed (Inspect) | Aug 16, 2022 at 5:53AM (UTC) | |
commerce-ordercloud | ❌ Failed (Inspect) | Aug 16, 2022 at 5:53AM (UTC) | |
commerce-pbt01 | ❌ Failed (Inspect) | Aug 16, 2022 at 5:53AM (UTC) | |
commerce-saleor | ❌ Failed (Inspect) | Aug 16, 2022 at 5:53AM (UTC) | |
commerce-sfcc | ❌ Failed (Inspect) | Aug 16, 2022 at 5:53AM (UTC) | |
commerce-shopify | ❌ Failed (Inspect) | Aug 16, 2022 at 5:53AM (UTC) | |
commerce-site | ❌ Failed (Inspect) | Aug 16, 2022 at 5:53AM (UTC) | |
commerce-spree | ❌ Failed (Inspect) | Aug 16, 2022 at 5:53AM (UTC) | |
commerce-swell | ✅ Ready (Inspect) | Visit Preview | Aug 16, 2022 at 5:53AM (UTC) |
commerce-vendure | ❌ Failed (Inspect) | Aug 16, 2022 at 5:53AM (UTC) |
We appreciate the time you took to make this PR. We have decided to take Next.js Commerce in a new direction, but I am happy to say that this feature will be present in the upcoming release. Please see this PR for more details: #966