calc shipping before totals
This commit is contained in:
parent
8f2efbfef3
commit
e21912294a
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue