Sunnysideup\Ecommerce\Model\Address\EcommerceCountry::get_country_object
This function works out the most likely country for the current order and returns the Country Object, if any.
Signature
public function get_country_object([boolean
$recalculate = false,
[string
$countryCode = NULL]] )
Parameters
$recalculate
— boolean- (optional)
$countryCode
— string- (optional)
Returns
- null|DataObject|EcommerceCountry