woocommerce/plugins/woocommerce-blocks/assets/js/blocks/cart-checkout/cart/full-cart
Darren Ethier 0cacf5e0da Disallow selecting quantity of stock past what's available. (https://github.com/woocommerce/woocommerce-blocks/pull/1905)
- `useStoreCartItemQuantity` now receives the cartItem instead of the `cartItemKey` as an argument. I didn't notice in previous reviews how it's used in the context where we already have a cartItem so implementing this reduces complexity and makes the hook more precise for it's purpose.
- Add `backorders_allowed` to the CartItem schema for the API. This allows for client to have correct logic for maximum quantity when this value is true.
- Implement the above in the `CartLineItemRow` so that quantity picker is limited by the amount of stock remaining if that is available (`lowStockRemaining`) and the `backorders_allowed` is false.
- maximum quantity is currently hardcoded to a (filtered) value of `99` when other conditions don't apply (see related issue in woocommerce/woocommerce-blocks#1913)
2020-03-10 07:43:57 -04:00
..
checkout-button Add Cart totals to Cart block (https://github.com/woocommerce/woocommerce-blocks/pull/1411) 2020-01-10 15:37:27 +01:00
cart-line-item-row.js Disallow selecting quantity of stock past what's available. (https://github.com/woocommerce/woocommerce-blocks/pull/1905) 2020-03-10 07:43:57 -04:00
cart-line-items-table.js Add skeleton markup to the cart block (https://github.com/woocommerce/woocommerce-blocks/pull/1866) 2020-03-05 14:15:28 +00:00
cart-line-items-title.js Add loading placeholder for cart block (inital load) (https://github.com/woocommerce/woocommerce-blocks/pull/1819) 2020-02-26 15:49:07 +00:00
editor.scss UI for removing cart items (not including hooking up to API) (https://github.com/woocommerce/woocommerce-blocks/pull/1579) 2020-01-17 13:46:56 +00:00
index.js Link shipping form fields to shipping rates to load them. (https://github.com/woocommerce/woocommerce-blocks/pull/1890) 2020-03-10 11:55:19 +01:00
product-image.js Add loading placeholder for cart block (inital load) (https://github.com/woocommerce/woocommerce-blocks/pull/1819) 2020-02-26 15:49:07 +00:00
product-low-stock-badge.js Add loading placeholder for cart block (inital load) (https://github.com/woocommerce/woocommerce-blocks/pull/1819) 2020-02-26 15:49:07 +00:00
product-variation-data.js Add loading placeholder for cart block (inital load) (https://github.com/woocommerce/woocommerce-blocks/pull/1819) 2020-02-26 15:49:07 +00:00
style.scss mobile layout fixes for cart totals (https://github.com/woocommerce/woocommerce-blocks/pull/1898) 2020-03-10 10:16:03 +13:00