[2.5] Set has calculated shipping to true when setting country

Closes #10148
This commit is contained in:
Mike Jolley 2016-01-25 10:16:36 +00:00
parent a2fbfec5bf
commit 55c8f91c14
1 changed files with 2 additions and 0 deletions

View File

@ -315,6 +315,7 @@ class WC_AJAX {
if ( isset( $_POST['country'] ) ) {
WC()->customer->set_shipping_country( $_POST['country'] );
WC()->customer->calculated_shipping( true );
}
if ( isset( $_POST['state'] ) ) {
@ -340,6 +341,7 @@ class WC_AJAX {
if ( isset( $_POST['s_country'] ) ) {
WC()->customer->set_shipping_country( $_POST['s_country'] );
WC()->customer->calculated_shipping( true );
}
if ( isset( $_POST['s_state'] ) ) {