Fix for previous commit

This commit is contained in:
Mike Jolley 2012-01-09 18:08:56 +00:00
parent 55222422c6
commit dc4145dc57
1 changed files with 3 additions and 1 deletions

View File

@ -1184,7 +1184,9 @@ class woocommerce_cart {
* gets the total excluding taxes
*/
function get_total_ex_tax() {
return woocommerce_price( $this->total - $this->tax_total - $this->shipping_tax_total );
$total = $this->total - $this->tax_total - $this->shipping_tax_total;
if ($total<0) $total = 0;
return woocommerce_price( $total );
}
/**