commerce icon indicating copy to clipboard operation
commerce copied to clipboard

Add availableForSale to variant

Open powerwlsl opened this issue 1 year ago • 2 comments

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>

image image image

powerwlsl avatar Aug 09 '22 03:08 powerwlsl

@powerwlsl is attempting to deploy a commit to the Vercel Solutions Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Aug 09 '22 03:08 vercel[bot]

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)

vercel[bot] avatar Aug 09 '22 03:08 vercel[bot]

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

manovotny avatar Apr 18 '23 02:04 manovotny