|
@@ 769-774 (lines=6) @@
|
| 766 |
|
* @param string $city |
| 767 |
|
* @throws WC_Data_Exception |
| 768 |
|
*/ |
| 769 |
|
public function set_shipping_location( $country, $state = '', $postcode = '', $city = '' ) { |
| 770 |
|
$this->_data['shipping']['country'] = $country; |
| 771 |
|
$this->_data['shipping']['state'] = $state; |
| 772 |
|
$this->_data['shipping']['postcode'] = $postcode; |
| 773 |
|
$this->_data['shipping']['city'] = $city; |
| 774 |
|
} |
| 775 |
|
|
| 776 |
|
/** |
| 777 |
|
* Sets all address info at once. |
|
@@ 784-789 (lines=6) @@
|
| 781 |
|
* @param string $city |
| 782 |
|
* @throws WC_Data_Exception |
| 783 |
|
*/ |
| 784 |
|
public function set_billing_location( $country, $state, $postcode = '', $city = '' ) { |
| 785 |
|
$this->_data['billing']['country'] = $country; |
| 786 |
|
$this->_data['billing']['state'] = $state; |
| 787 |
|
$this->_data['billing']['postcode'] = $postcode; |
| 788 |
|
$this->_data['billing']['city'] = $city; |
| 789 |
|
} |
| 790 |
|
|
| 791 |
|
/** |
| 792 |
|
* Set billing first name. |