woocommerce/plugins/woocommerce-blocks/assets/js/previews
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
..
cart.js show discount badge in line items in cart (https://github.com/woocommerce/woocommerce-blocks/pull/1784) 2020-02-25 12:17:13 +00:00
categories.js Add featured category preview (https://github.com/woocommerce/woocommerce-blocks/pull/1122) 2019-11-05 10:33:07 +00:00
grid-block.js Add grid block previews using an SVG image (https://github.com/woocommerce/woocommerce-blocks/pull/1118) 2019-11-15 15:16:18 +00:00
index.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
product-image.js Cart block: line-items front end initial work (https://github.com/woocommerce/woocommerce-blocks/pull/1333) 2020-01-10 11:50:14 +13:00
products.js Summary/description consistency update (https://github.com/woocommerce/woocommerce-blocks/pull/1639) 2020-01-29 10:59:33 +00:00
reviews.js Add previews for Reviews blocks (https://github.com/woocommerce/woocommerce-blocks/pull/1059) 2019-10-22 16:13:14 +02:00
shipping-rates.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