Search the Community
Showing results for tags 'ContactController.php'.
-
Hi, Has anyone still got issues with the updates to the contact form in Prestashop 1.6.1.18? I've made the changes to the contactcontroller.php and contact.tpl as suggested in the GitHub ticket: https://github.com/PrestaShop/PrestaShop/pull/8168 but I'm still receiving an error that the form cannot be submitted. I have checked that emails are configured correctly through the back office email test and these work just fine. However the contact form is failing to submit? Has anyone else had any issue following the code base change? The error I'm recieving is: There is 1 error An error occurred while sending the message. I'd be interested to hear if anyone else is still having issues? Regards, Steven.
- 14 replies
-
- 1.6.1.18
- contact.tpl
-
(and 3 more)
Tagged with:
-
Hi guys... I am having trouble with translating the subject of messages received from contact forms... The subject the customer receives when sending a message is "Your message has been correctly sent #ct.... #tc.....)" I cannot find this anywhere in the email template translations or in any other translation area whatsoever.... From searching within the code, I found the specific message in the file.. /controllers/front/ContactController.php in the line 184 where it reads... $subject = sprintf(Mail::l('Your message has been correctly sent #ct%1$s #tc%2$s'), $ct->id, $ct->token); By reading the prestashop documentation about translation, it says that the email objects must use the following syntax in order to be translated So I tried modifying the line to be like that: $subject = sprintf(Mail::l('Your message has been correctly sent #ct%1$s #tc%2$s',(int)$ct->id_lang), $ct->id, $ct->token); but unfortunately it didn't appear in the translations again. Also none of the message in the contactcontroller that use the $this->l(......) function appear on the translations... So my question is how do we translate this.......
- 3 replies
-
- ContactController.php
- translation
-
(and 1 more)
Tagged with: