[-] FO : Fix bug #PSCFV-7388 Guest checkout & state validation thankx to Sergio
This commit is contained in:
1 parent
7d1e6d993d
commit
3c6c352df2
1 file changed
+1
-1
@@ -517,7 +517,7 @@ class AuthControllerCore extends FrontController
|
|||||||
if (!count($this->errors))
|
if (!count($this->errors))
|
||||||
{
|
{
|
||||||
// if registration type is in one step, we save the address
|
// if registration type is in one step, we save the address
|
||||||
if (Configuration::get('PS_REGISTRATION_PROCESS_TYPE'))
|
if ((Configuration::get('PS_REGISTRATION_PROCESS_TYPE') || Tools::isSubmit('submitGuestAccount'))
|
||||||
if (!($country = new Country($address->id_country, Configuration::get('PS_LANG_DEFAULT'))) || !Validate::isLoadedObject($country))
|
if (!($country = new Country($address->id_country, Configuration::get('PS_LANG_DEFAULT'))) || !Validate::isLoadedObject($country))
|
||||||
die(Tools::displayError());
|
die(Tools::displayError());
|
||||||
$contains_state = isset($country) && is_object($country) ? (int)$country->contains_states: 0;
|
$contains_state = isset($country) && is_object($country) ? (int)$country->contains_states: 0;
|
||||||
|
|||||||
Reference in new issue
Block a user