oliverhr Posted November 6, 2014 Share Posted November 6, 2014 (edited) I hope anyone can help me, Im getting issues with email templates translation on prestashop 1.6.0.5. I been editing prestashop templates with custom images and links but on save all of them are getting changed. In the best scenario(bad also but...) the domain part are removed: original: <img src="http://shop.mydomain.com/img/phone322.png" alt="" width="35" height="35" /> After save: <img src="/img/phone322.png" alt="" width="35" height="35" /> or in worst scenario de "secret" admin path is concatenated to url: <a href="/admin02005/http://shop.mydomain.com/">Link</a> <img src="/admin02005/cid:[email protected]"/> <img src="/admin02005/img/phone322.png" alt="" width="35" height="35" /> Thank you in advance. Edited November 6, 2014 by oliverhr (see edit history) Link to comment Share on other sites More sharing options...
oliverhr Posted November 7, 2014 Author Share Posted November 7, 2014 (edited) Seems to be a problem with prestashop Mailer class -or- SwiftMailer. I'll post any additional information here. Edited November 7, 2014 by oliverhr (see edit history) Link to comment Share on other sites More sharing options...
oliverhr Posted November 8, 2014 Author Share Posted November 8, 2014 I've been testing and it seems that the problem occurs when translations are parsed on saving. Link to comment Share on other sites More sharing options...
vekia Posted November 8, 2014 Share Posted November 8, 2014 it's a case of tinymce editor it's necessary to alter tinymce editor to prevent removing shop urls from image paths. everything is described here: http://www.prestashop.com/forums/topic/341056-solved-prestashop-16-extended-tinymce-editor-and-forms/ parameters to force urls post nb #6 Link to comment Share on other sites More sharing options...
oliverhr Posted November 8, 2014 Author Share Posted November 8, 2014 Let me read the post. Thank you very much Vekia Link to comment Share on other sites More sharing options...
oliverhr Posted November 8, 2014 Author Share Posted November 8, 2014 Solution edit file /js/tiymce.inc.js Make shure you have this elements on default_config: default_config = { ... cleanup: false, convert_urls: false, relative_urls : false, remove_script_host: false, ... } For more reference read: http://mypresta.eu/en/art/prestashop-16/extended-rich-text-editor.html thanks to Milosz Myszczuk aka @Vekia 1 Link to comment Share on other sites More sharing options...
Recommended Posts