Andreasjj Posted August 6, 2013 Share Posted August 6, 2013 (edited) Hello, All of the mails my PrestaShop is sending out has the logo as an attachment. I am using PrestaShop 1.5.4.1. How do i prevent that the logo is an attachment? Is it possible to embed as HTML? Thanks in advance, Andreas. Edited August 6, 2013 by Andreasjj (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted August 6, 2013 Share Posted August 6, 2013 It would appear that you would need to have modifications made to the classes/Mail.php file. at or around line 239, you would need to modify if (Configuration::get('PS_LOGO_MAIL') !== false && file_exists(_PS_IMG_DIR_.Configuration::get('PS_LOGO_MAIL', null, null, $id_shop))) $logo = _PS_IMG_DIR_.Configuration::get('PS_LOGO_MAIL', null, null, $id_shop); else { if (file_exists(_PS_IMG_DIR_.Configuration::get('PS_LOGO', null, null, $id_shop))) $logo = _PS_IMG_DIR_.Configuration::get('PS_LOGO', null, null, $id_shop); else $template_vars['{shop_logo}'] = ''; } /* don't attach the logo as */ if (isset($logo)) $template_vars['{shop_logo}'] = $message->attach(new Swift_Message_EmbeddedFile(new Swift_File($logo), null, ImageManager::getMimeTypeByExtension($logo))); I will move this to development for better results. Link to comment Share on other sites More sharing options...
Andreasjj Posted August 6, 2013 Author Share Posted August 6, 2013 (edited) It would appear that you would need to have modifications made to the classes/Mail.php file. at or around line 239, you would need to modify if (Configuration::get('PS_LOGO_MAIL') !== false && file_exists(_PS_IMG_DIR_.Configuration::get('PS_LOGO_MAIL', null, null, $id_shop))) $logo = _PS_IMG_DIR_.Configuration::get('PS_LOGO_MAIL', null, null, $id_shop); else { if (file_exists(_PS_IMG_DIR_.Configuration::get('PS_LOGO', null, null, $id_shop))) $logo = _PS_IMG_DIR_.Configuration::get('PS_LOGO', null, null, $id_shop); else $template_vars['{shop_logo}'] = ''; } /* don't attach the logo as */ if (isset($logo)) $template_vars['{shop_logo}'] = $message->attach(new Swift_Message_EmbeddedFile(new Swift_File($logo), null, ImageManager::getMimeTypeByExtension($logo))); I will move this to development for better results. Thank you for your reply, but i am new to coding. It would be perfect if you could tell me exactly what to change. EDIT: Por favor señor Edited August 6, 2013 by Andreasjj (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted August 6, 2013 Share Posted August 6, 2013 Thank you for your reply, but i am new to coding. It would be perfect if you could tell me exactly what to change. EDIT: Por favor señor no time today...this is why I moved post to development...maybe someone can make the change and test it for you. but if you want to make native core changes...and can't do it yourself...development is a good place to post if you need immediate help I can move this to the paid section where you can hire it out for probably a reasonable rate Link to comment Share on other sites More sharing options...
Andreasjj Posted August 6, 2013 Author Share Posted August 6, 2013 no time today...this is why I moved post to development...maybe someone can make the change and test it for you. but if you want to make native core changes...and can't do it yourself...development is a good place to post if you need immediate help I can move this to the paid section where you can hire it out for probably a reasonable rate Thank you, i hope someone has a solution Link to comment Share on other sites More sharing options...
Andreasjj Posted August 7, 2013 Author Share Posted August 7, 2013 Bump. Link to comment Share on other sites More sharing options...
Andreasjj Posted August 8, 2013 Author Share Posted August 8, 2013 .. Link to comment Share on other sites More sharing options...
pel024 Posted August 27, 2013 Share Posted August 27, 2013 (edited) Hi, Please see this post (post #5) for instructions. Edited August 27, 2013 by pel024 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted August 28, 2013 Share Posted August 28, 2013 just wondering, thread you mentioned is from 2008 and post from 2011, it's a bit old topic, will this work in ps .1.5 ? Link to comment Share on other sites More sharing options...
pel024 Posted August 28, 2013 Share Posted August 28, 2013 just wondering, thread you mentioned is from 2008 and post from 2011, it's a bit old topic, will this work in ps .1.5 ? Eolia updates the post regularly, last update 3rd June 2013. 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