Added woocommerce_calculate_totals hook to calculate totals function

This commit is contained in:
Mike Jolley 2011-10-03 12:27:58 +01:00
parent 3d325f676e
commit ffd74d0898
1 changed files with 3 additions and 0 deletions

View File

@ -430,6 +430,9 @@ class woocommerce_cart {
$this->shipping_tax_total = 0;
$this->tax_total = 0;
endif;
// Allow plugins to hook and alter totals before final total is calculated
do_action('woocommerce_calculate_totals', $this);
// Total
if (get_option('woocommerce_prices_include_tax')=='yes') :