calc shipping before totals

This commit is contained in:
Mike Jolley 2019-02-22 16:43:42 +00:00
parent 8f2efbfef3
commit e21912294a
1 changed files with 3 additions and 0 deletions

View File

@ -333,6 +333,9 @@ class WC_AJAX {
}
WC()->customer->save();
// Calculate shipping before totals. This will ensure any shipping methods that affect things like taxes are chosen prior to final totals being calculated. Ref: #22708
WC()->cart->calculate_shipping();
WC()->cart->calculate_totals();
// Get order review fragment.