storefront-api-examples icon indicating copy to clipboard operation
storefront-api-examples copied to clipboard

Update Cart.js checkout button

Open SirChristianWilliam opened this issue 2 years ago • 0 comments

Previously, the checkout button was always enabled, even if there were no items in the cart. The added code conditionally renders the button as either disabled or enabled, so when there are no items in the cart it will not be able to be clicked.

SirChristianWilliam avatar Apr 07 '23 02:04 SirChristianWilliam