woocommerce/plugins/woocommerce-blocks/assets/js/blocks/cart-checkout/cart
Rua Haszard 0f57b6fdef show discount badge in line items in cart (https://github.com/woocommerce/woocommerce-blocks/pull/1784)
* calculate regular price for line item and return in API `line_subtotal`

* restore `line_subtotal` api field to previous behaviour

* correctly handle discounts on cart line items:
- return product `prices` in cart items endpoint
- calculate full price and discount on client using product
regular_price * quantity in cart

* add product prices to preview cart API data

* show product sale price discount in "save" badge:
- previously we were displaying any effective discount, e.g. from coupons which apply to whole cart
- now this badge will only display discount due to product on sale - much simpler

* rename sale badge class (discount => sale)

* clarify docs for line_subtotal - includes sale prices, not coupons

* clarify line_total docs

* add prices to schema (fix unit test)

* fix schema unit test - return `prices` as object, consistent with `totals`

* Further line total rewording

Co-authored-by: Mike Jolley <mike.jolley@me.com>
2020-02-25 12:17:13 +00:00
..
empty-cart Focus on Full Cart mode after inserting (https://github.com/woocommerce/woocommerce-blocks/pull/1582) 2020-01-17 13:23:33 +01:00
full-cart show discount badge in line items in cart (https://github.com/woocommerce/woocommerce-blocks/pull/1784) 2020-02-25 12:17:13 +00:00
edit.js Add product name and quantity to cart shipping rates endpoint (https://github.com/woocommerce/woocommerce-blocks/pull/1783) 2020-02-25 10:32:59 +01:00
example.js Skeleton shopping cart block (https://github.com/woocommerce/woocommerce-blocks/pull/1306) 2019-12-03 08:57:56 -05:00
frontend.js Allow coupons to be applied and removed from the cart (https://github.com/woocommerce/woocommerce-blocks/pull/1790) 2020-02-25 11:36:53 +00:00
index.js Add Shipping settings to Cart block (https://github.com/woocommerce/woocommerce-blocks/pull/1561) 2020-02-19 17:33:10 +01:00
style.scss Cart block: line-items front end initial work (https://github.com/woocommerce/woocommerce-blocks/pull/1333) 2020-01-10 11:50:14 +13:00