Merge pull request #881 from shreesh-webkul/gli-1078
Improvement: Address is not required in booking/order flow
This commit is contained in:
@@ -417,11 +417,12 @@ class FrontControllerCore extends Controller
|
||||
|
||||
$display_tax_label = $this->context->country->display_tax_label;
|
||||
if (isset($cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')}) && $cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')}) {
|
||||
$infos = Address::getCountryAndState((int)$cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')});
|
||||
$country = new Country((int)$infos['id_country']);
|
||||
$this->context->country = $country;
|
||||
if (Validate::isLoadedObject($country)) {
|
||||
$display_tax_label = $country->display_tax_label;
|
||||
if ($infos = Address::getCountryAndState((int)$cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')})) {
|
||||
$country = new Country((int)$infos['id_country']);
|
||||
$this->context->country = $country;
|
||||
if (Validate::isLoadedObject($country)) {
|
||||
$display_tax_label = $country->display_tax_label;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user