Date carrier not empty

This commit is contained in:
Michael RICOIS 2017-10-19 15:02:03 +02:00
parent 1b35186bc1
commit 612903c4cc
2 changed files with 6 additions and 3 deletions

View File

@ -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();

View File

@ -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">