pause4paws Posted September 17, 2016 Share Posted September 17, 2016 Prestashop 1.6.1.7 New site being worked on in demo mode. I tested my contact form and received a message with the subject of: [My Website] Message from contact form [no_sync] How do I fix this and what's it for: [no_sync] TemplateMonster suggests this is a PrestaShop engine issue and is not related to the template. Also the logo is gigantic in the body of the email. Where do I resize it for the emails, please? Link to comment Share on other sites More sharing options...
rocky Posted September 18, 2016 Share Posted September 18, 2016 It's line 189 (in PrestaShop v1.6.1.7) of controllers/front/ContactController.php that adds [no_sync] to the subject line: if (!Mail::Send($this->context->language->id, 'contact', Mail::l('Message from contact form').' [no_sync]', You can delete .' [no_sync]' to remove it. For the logo size in the emails, you'll need to edit all the HTML mail templates in the mails directory and add a width and height to the logo <img> tags to reduce the size. For example, change: <img src="{shop_logo}" alt="{shop_name}" /> to: <img src="{shop_logo}" alt="{shop_name}" width="250" height="100" /> Change 250 to the width of your logo in pixels and 100 to the height. 4 Link to comment Share on other sites More sharing options...
pause4paws Posted September 18, 2016 Author Share Posted September 18, 2016 Thank you very much for this help. It took a while to update all the HTML mail templates, but my logo is now back to the normal size in emails. Is it okay to also delete what I bolded here? [My Site] Your message has been correctly sent #ct4 #tcq0czkzw1xR4E In other words, can the subject just say "Your message has been sent"? Thank you! Link to comment Share on other sites More sharing options...
rocky Posted September 18, 2016 Share Posted September 18, 2016 Sure, you could delete it if you want. Your customers may find it harder to search for your emails though. 1 Link to comment Share on other sites More sharing options...
pause4paws Posted September 18, 2016 Author Share Posted September 18, 2016 Can I change this #ct4 #tcq0czkzw1xR4E to something more legible, please, or will that do something to the rest of the emails? Link to comment Share on other sites More sharing options...
rocky Posted September 18, 2016 Share Posted September 18, 2016 I found the following comment on line 427 of controllers/admin/AdminCustomerThreadsController.php: //#ct == id_customer_thread #tc == token of thread <== used in the synchronization imap It seems those are used to correctly synchronise emails when you're using IMAP, so I think you can't remove them unless you're using PHP mail. 1 Link to comment Share on other sites More sharing options...
pause4paws Posted September 18, 2016 Author Share Posted September 18, 2016 Thank you for researching for me. I'll leave them alone. I appreciate it. Link to comment Share on other sites More sharing options...
aurelienb Posted May 25, 2018 Share Posted May 25, 2018 Hi, any idea for the 1.7 version ? there are only ... class ContactControllerCore extends FrontController { public $php_self = 'contact'; public $ssl = true; /** * Assign template vars related to page content * @see FrontController::initContent() */ public function initContent() { parent::initContent(); $this->setTemplate('contact'); } } Link to comment Share on other sites More sharing options...
patuga Posted April 2, 2019 Share Posted April 2, 2019 (edited) For Prestashop 1.7 it's in another file. controllers\admin\AdminCustomerThreadsController.php change from: $new_ct = (Configuration::get('PS_SAV_IMAP_CREATE_THREADS') && !$match_found && (strpos($subject, '[no_sync]') == false)); to: $new_ct = (Configuration::get('PS_SAV_IMAP_CREATE_THREADS') && !$match_found && (strpos($subject) == false)); Edited April 2, 2019 by patuga (see edit history) Link to comment Share on other sites More sharing options...
patuga Posted April 29, 2019 Share Posted April 29, 2019 (edited) After posting this "solution" i realized it doesn't work, so I kept searching for this problem, and saw someone changing the contactform.php file i've tested and it works on version 1.7.5.1 change file contactform.php in -> modules/contactform folder this: $this->trans('Message from contact form', [], 'Emails.Subject').' [no_sync]', to this: $this->trans('Message from contact form', [], 'Emails.Subject'), i don't know if you still have to change the file AdminCustomerThreadsController.php or not, but you can start with contactform.php and if it doesn't work, you can change the other one too. Edited April 29, 2019 by patuga (see edit history) 1 Link to comment Share on other sites More sharing options...
Mostrowski Posted November 13, 2020 Share Posted November 13, 2020 How to change [no_sync] message to client e-mail adress? If i delete .' [no_sync]' i have empty field after "message from" Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now