|
@@ 320-323 (lines=4) @@
|
| 317 |
|
|
| 318 |
|
if ( wc_ship_to_billing_address_only() ) { |
| 319 |
|
|
| 320 |
|
if ( isset( $_POST['country'] ) ) { |
| 321 |
|
WC()->customer->set_shipping_country( $_POST['country'] ); |
| 322 |
|
WC()->customer->calculated_shipping( true ); |
| 323 |
|
} |
| 324 |
|
|
| 325 |
|
if ( isset( $_POST['state'] ) ) { |
| 326 |
|
WC()->customer->set_shipping_state( $_POST['state'] ); |
|
@@ 346-349 (lines=4) @@
|
| 343 |
|
} |
| 344 |
|
} else { |
| 345 |
|
|
| 346 |
|
if ( isset( $_POST['s_country'] ) ) { |
| 347 |
|
WC()->customer->set_shipping_country( $_POST['s_country'] ); |
| 348 |
|
WC()->customer->calculated_shipping( true ); |
| 349 |
|
} |
| 350 |
|
|
| 351 |
|
if ( isset( $_POST['s_state'] ) ) { |
| 352 |
|
WC()->customer->set_shipping_state( $_POST['s_state'] ); |