Have the remove_taxes() method set subtotal to subtotal_ex_tax
This commit is contained in:
parent
12e4f332a3
commit
742cd3ae36
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue