diff --git a/controllers/front/mail.php b/controllers/front/mail.php index 0396a7b..841233b 100644 --- a/controllers/front/mail.php +++ b/controllers/front/mail.php @@ -59,11 +59,11 @@ public function displayAjaxSetRequest() 'message' => $this->l('You have to consent our data policy terms'), ])); } - $firstName = Tools::getValue('everfirstName'); - $lastName = Tools::getValue('everlastName'); - $email = Tools::getValue('everemail'); - $phone = Tools::getValue('everphone'); - $contacted = Tools::getValue('evercontacted'); + $firstName = Tools::getValue('quotefirstName'); + $lastName = Tools::getValue('quotelastName'); + $email = Tools::getValue('quoteemail'); + $phone = Tools::getValue('quotephone'); + $contacted = Tools::getValue('contacted'); $sent = $this->sendQuoteAdminMail($firstName, $lastName, $email, $phone, $contacted); die(json_encode([ 'sent' => $sent, diff --git a/models/HTMLTemplateEverQuotationPdf.php b/models/HTMLTemplateEverQuotationPdf.php index f3aa6df..246eb83 100644 --- a/models/HTMLTemplateEverQuotationPdf.php +++ b/models/HTMLTemplateEverQuotationPdf.php @@ -113,7 +113,7 @@ public function getHeader() $newDateTimestamp = strtotime($everpsquotation->date_add . " +{$this->duration} days"); // Formater la nouvelle date au format 'd/m/Y' - $deadline = date('d/m/Y', $newDateTimestamp); + $deadline = date('Y-m-d h:m:s', $newDateTimestamp); } else { $deadline = false; }