|
@@ 338-341 (lines=4) @@
|
| 335 |
|
|
| 336 |
|
if ( wc_ship_to_billing_address_only() ) { |
| 337 |
|
|
| 338 |
|
if ( ! empty( $_POST['country'] ) ) { |
| 339 |
|
WC()->customer->set_shipping_country( $_POST['country'] ); |
| 340 |
|
WC()->customer->set_calculated_shipping( true ); |
| 341 |
|
} |
| 342 |
|
|
| 343 |
|
if ( isset( $_POST['state'] ) ) { |
| 344 |
|
WC()->customer->set_shipping_state( $_POST['state'] ); |
|
@@ 364-367 (lines=4) @@
|
| 361 |
|
} |
| 362 |
|
} else { |
| 363 |
|
|
| 364 |
|
if ( ! empty( $_POST['s_country'] ) ) { |
| 365 |
|
WC()->customer->set_shipping_country( $_POST['s_country'] ); |
| 366 |
|
WC()->customer->set_calculated_shipping( true ); |
| 367 |
|
} |
| 368 |
|
|
| 369 |
|
if ( isset( $_POST['s_state'] ) ) { |
| 370 |
|
WC()->customer->set_shipping_state( $_POST['s_state'] ); |