Logo
Eolia @eolia
a répondu au Message de yoyo64 - 15 h.
Si vous êtes en OPC il faut ajouter ces lignes dans /controllers/OrderOpcController.php, avant la ligne 729:

CODE
if($this->context->customer->id_risk >= 3) {
if($this->context->customer->id_risk == 3) {
return ''.Tools::displayError('There is a problem with your email. Please contact us if you wish to finalize your order.', false).'';
}
else {
return ''.Tools::displayError('There is a problem with your last order and your account is suspended. Please contact us if you wish to finalize your order.', false).'';
}
}

Concernant store commander, vu qu'il utilise le cookie, évitez ce genre test inutile.