[2.5] Set has calculated shipping to true when setting country
Closes #10148
This commit is contained in:
parent
a2fbfec5bf
commit
55c8f91c14
|
@ -315,6 +315,7 @@ class WC_AJAX {
|
||||||
|
|
||||||
if ( isset( $_POST['country'] ) ) {
|
if ( isset( $_POST['country'] ) ) {
|
||||||
WC()->customer->set_shipping_country( $_POST['country'] );
|
WC()->customer->set_shipping_country( $_POST['country'] );
|
||||||
|
WC()->customer->calculated_shipping( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( isset( $_POST['state'] ) ) {
|
if ( isset( $_POST['state'] ) ) {
|
||||||
|
@ -340,6 +341,7 @@ class WC_AJAX {
|
||||||
|
|
||||||
if ( isset( $_POST['s_country'] ) ) {
|
if ( isset( $_POST['s_country'] ) ) {
|
||||||
WC()->customer->set_shipping_country( $_POST['s_country'] );
|
WC()->customer->set_shipping_country( $_POST['s_country'] );
|
||||||
|
WC()->customer->calculated_shipping( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( isset( $_POST['s_state'] ) ) {
|
if ( isset( $_POST['s_state'] ) ) {
|
||||||
|
|
Loading…
Reference in New Issue