Merge pull request #13048 from woocommerce/fix/cart-discount-call

Fix call to non-existent method for cart_discount.
This commit is contained in:
Mike Jolley 2017-02-03 11:00:54 +01:00 committed by GitHub
commit 244b42eae8
1 changed files with 1 additions and 1 deletions

View File

@ -428,7 +428,7 @@ abstract class WC_Abstract_Legacy_Order extends WC_Data {
} elseif ( 'display_cart_ex_tax' === $key ) {
return 'excl' === get_option( 'woocommerce_tax_display_cart' );
} elseif ( 'cart_discount' === $key ) {
return $this->get_discount();
return $this->get_total_discount();
} elseif ( 'cart_discount_tax' === $key ) {
return $this->get_discount_tax();
} elseif ( 'order_tax' === $key ) {