From 742cd3ae364243bdd4e2108d0c10a3458f4893f9 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Tue, 7 May 2013 12:56:59 +0100 Subject: [PATCH] Have the remove_taxes() method set subtotal to subtotal_ex_tax --- classes/class-wc-cart.php | 1 + readme.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/classes/class-wc-cart.php b/classes/class-wc-cart.php index b015f71c818..de3857a254e 100644 --- a/classes/class-wc-cart.php +++ b/classes/class-wc-cart.php @@ -1633,6 +1633,7 @@ class WC_Cart { public function remove_taxes() { $this->shipping_tax_total = $this->tax_total = 0; $this->taxes = $this->shipping_taxes = array(); + $this->subtotal = $this->subtotal_ex_tax; foreach ( $this->cart_contents as $cart_item_key => $item ) $this->cart_contents[ $cart_item_key ]['line_subtotal_tax'] = $this->cart_contents[ $cart_item_key ]['line_tax'] = 0; diff --git a/readme.txt b/readme.txt index dc269162556..9b4d049ec69 100644 --- a/readme.txt +++ b/readme.txt @@ -173,6 +173,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc * Fix - Correct label for RUB symbol - added a dot after it * Fix - Javascript escapes to stop breaking scripts when used with translations * Fix - PayPal button should use classes 'button' and 'alt', not 'button-alt' +* Fix - Have the remove_taxes() method set subtotal to subtotal_ex_tax * Refactor - Taken out Piwik integration, use http://wordpress.org/extend/plugins/woocommerce-piwik-integration/ from now on * Refactor - Taken out ShareYourCart integration, use http://wordpress.org/extend/plugins/shareyourcart/ from now on * Refactor - Moved woocommerce_get_formatted_product_name function into WC_Product class