Date carrier not empty
This commit is contained in:
parent
1b35186bc1
commit
612903c4cc
@ -94,10 +94,13 @@ class OrderController extends OrderControllerCore
|
||||
/**
|
||||
* @Override
|
||||
*/
|
||||
if(Tools::getValue('error') == 1)
|
||||
{
|
||||
if(Tools::getValue('error') == 1) {
|
||||
$this->errors[] = 'Une erreur est survenue lors de votre paiement, vous pouvez réessayer';
|
||||
}
|
||||
|
||||
if (empty(Tools::getValue('date-carrier'))) {
|
||||
Tools::redirect('index.php?controller=order&step=1');
|
||||
}
|
||||
|
||||
if(Tools::isSubmit('processAddress'))
|
||||
$this->processAddress();
|
||||
|
@ -86,7 +86,7 @@
|
||||
<div class="row date">
|
||||
<div class="sm6 form-group">
|
||||
<div class="ctn-input">
|
||||
<input id="date-carrier" name="date-carrier" type="text" class="form-control" />
|
||||
<input id="date-carrier" name="date-carrier" type="text" class="form-control" required/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sm6 infos-contact">
|
||||
|
Loading…
Reference in New Issue
Block a user