Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added minus symbol to cart discount labels too

  • Loading branch information...
commit c0cb5b27de3e86211ef4d4f5ea85a2b9c181fa17 1 parent 60562e1
@coenjacobs coenjacobs authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  classes/class-wc-order.php
View
2  classes/class-wc-order.php
@@ -488,7 +488,7 @@ function get_order_item_totals() {
$total_rows[ __( 'Cart Subtotal:', 'woocommerce' ) ] = $subtotal;
if ( $this->get_cart_discount() > 0 )
- $total_rows[ __( 'Cart Discount:', 'woocommerce' ) ] = woocommerce_price( $this->get_cart_discount() );
+ $total_rows[ __( 'Cart Discount:', 'woocommerce' ) ] = '-' . woocommerce_price( $this->get_cart_discount() );
if ( $this->get_shipping() > 0 )
$total_rows[ __('Shipping:', 'woocommerce') ] = $this->get_shipping_to_display();

1 comment on commit c0cb5b2

@applejack1923

Hi Yes I missed the second line change. Thanks this now works.

Please sign in to comment.
Something went wrong with that request. Please try again.