Fix call to non-existant method for cart_discount.

This commit is contained in:
Boro Sitnikovski 2017-02-02 09:45:09 +01:00
parent 247c9aff50
commit 5f05b2e3d8
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 ) {