From 036d709b19b7aabe1925b192b21e7ec14fae57f8 Mon Sep 17 00:00:00 2001 From: claudiulodro Date: Mon, 31 Jul 2017 14:44:51 -0700 Subject: [PATCH] Use item subtotal for discount item price --- includes/class-wc-discounts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-discounts.php b/includes/class-wc-discounts.php index 14d7517c9d1..9bc9605a788 100644 --- a/includes/class-wc-discounts.php +++ b/includes/class-wc-discounts.php @@ -68,7 +68,7 @@ class WC_Discounts { $item->object = $cart_item; $item->product = $cart_item['data']; $item->quantity = $cart_item['quantity']; - $item->price = wc_add_number_precision_deep( $item->product->get_price() ) * $item->quantity; + $item->price = wc_add_number_precision_deep( $cart_item['line_subtotal'] ); $this->items[ $key ] = $item; }