Search the Community
Showing results for tags 'ContactController.php'.
Found 2 results
Contact Form - PS 188.8.131.52
SAUDIS posted a topic in General topicsHi, Has anyone still got issues with the updates to the contact form in Prestashop 184.108.40.206? 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.
mitsos1os posted a topic in Core developersHi 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.......