Sunnysideup\Ecommerce\Model\Address\EcommerceCountry::get_country
This function works out the most likely country for the current order.
Signature
public function get_country([boolean
$recalculate = false,
[integer
$orderID = 0]] )
Parameters
$recalculate
— boolean- (optional)
$orderID
— integer- (optional)
Returns
- string
- - Country Code - e.g. NZ