Have the remove_taxes() method set subtotal to subtotal_ex_tax

This commit is contained in:
Mike Jolley 2013-05-07 12:56:59 +01:00
parent 12e4f332a3
commit 742cd3ae36
2 changed files with 2 additions and 0 deletions

View File

@ -1633,6 +1633,7 @@ class WC_Cart {
public function remove_taxes() { public function remove_taxes() {
$this->shipping_tax_total = $this->tax_total = 0; $this->shipping_tax_total = $this->tax_total = 0;
$this->taxes = $this->shipping_taxes = array(); $this->taxes = $this->shipping_taxes = array();
$this->subtotal = $this->subtotal_ex_tax;
foreach ( $this->cart_contents as $cart_item_key => $item ) 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; $this->cart_contents[ $cart_item_key ]['line_subtotal_tax'] = $this->cart_contents[ $cart_item_key ]['line_tax'] = 0;

View File

@ -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 - Correct label for RUB symbol - added a dot after it
* Fix - Javascript escapes to stop breaking scripts when used with translations * Fix - Javascript escapes to stop breaking scripts when used with translations
* Fix - PayPal button should use classes 'button' and 'alt', not 'button-alt' * 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 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 - 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 * Refactor - Moved woocommerce_get_formatted_product_name function into WC_Product class