TRUTHSEEKER Posted February 10, 2010 Share Posted February 10, 2010 Hi,Whenever a customer makes an order their confirmation orders have my shop logo added as an attachment. The email i recieve also has my logo attatched to. Any help?Regards Link to comment Share on other sites More sharing options...
rocky Posted February 11, 2010 Share Posted February 11, 2010 I don't see the problem. That's the way it is supposed to work. If the logo isn't attached, you'd have to click a "Display images" link so the logo could be downloaded off your server. Link to comment Share on other sites More sharing options...
TRUTHSEEKER Posted February 11, 2010 Author Share Posted February 11, 2010 Thanks for the reply, is there a way to prevent this from happening, i dont want the emails to contain attachments with my shop logoany further advice? Link to comment Share on other sites More sharing options...
rocky Posted February 12, 2010 Share Posted February 12, 2010 To remove the logo from the email, comment out line 94 of classes/Mail.php: $templateVars['{shop_logo}'] = (file_exists(_PS_IMG_DIR_.'logo.jpg')) ? $message->attach(new Swift_Message_Image(new Swift_File(_PS_IMG_DIR_.'logo.jpg'))) : ''; Of course, this means that the logo will disappear from the email and {shop_logo} will be displayed there instead. You'll need to edit all the email templates to remove the {shop_logo} text. You can also replace it with an <img> tag to the logo on your website, but that would force the customer to click to display the logo. 1 Link to comment Share on other sites More sharing options...
need4speed Posted December 1, 2010 Share Posted December 1, 2010 Nice. Just the answer I was looking for Link to comment Share on other sites More sharing options...
phunter121 Posted July 5, 2011 Share Posted July 5, 2011 I am not sure I follow the response to this.If you have set the email config to send HTML emails. I would expect the logo to be embedded in the email, not held as an attachment. Dependng on your email system, you may have to right click to 'download image'.I have the same problem as the post originator, in that emails actually have the logo and order details in an attachment. this can't be right? Link to comment Share on other sites More sharing options...
Yafay Posted February 6, 2013 Share Posted February 6, 2013 Hi, why all my client mails goes to Junk mail folder? Link to comment Share on other sites More sharing options...
PrestaShark Posted July 13, 2013 Share Posted July 13, 2013 (edited) Hi, In PS 1.5.4.1 to not attach shop logo image in emails You need to edit file classes/Mail.php and change line 251 $template_vars['{shop_logo}'] = $message->attach(new Swift_Message_EmbeddedFile(new Swift_File($logo), null, ImageManager::getMimeTypeByExtension($logo))); to /*$template_vars['{shop_logo}'] = $message->attach(new Swift_Message_EmbeddedFile(new Swift_File($logo), null, ImageManager::getMimeTypeByExtension($logo))); */ This is usefull when You remove shop logo image in email templates by remove all {shop_logo} strings, and You want prevent showing logo in email attachment. Edited July 13, 2013 by kisweb (see edit history) 2 Link to comment Share on other sites More sharing options...
kmn Posted January 28, 2015 Share Posted January 28, 2015 (edited) I have two different translations and on English messages the header logo works just fine, but in translated e-mails it goes as an attachment. Any help on that?.. EDIT: I was able to locate the root cause for the fault. Everything stays correct and header logo works perfect, and looks nice as soon as i start editing the email content, that is sent to customer. Once i do any edits to the email, the header logo stops working and is sent as an attachment, instead in header place. The source of the message reply_msg says this: <td class="logo" style="border-bottom: 4px solid #333333; padding: 7px 0;" align="center"><a style="color: #337ff1;" title="{shop_name}" href="%7Bshop_url%7D"> <img src="%7Bshop_logo%7D" alt="{shop_name}" /></a> I could of course hardcode the files themselves as a workaround and use custom image on every translation, but this would mean editin over 150 files. I also tried correcting the img src and shop url to {shop_url} format in source view, but this didn't help. IMO this is a PrestaShop localization editor saving bug. Saving the changes causes the header logo reference {shop_logo} not working any more. Workaround: Define your header logo manually: - Take your email header logo and resize it to a size you wish to use in emails you send out (in my case 529x115) - Open up the email editing view of the message you want to customize (in e.g. the reply_msg) - Click on "Edit HTML Version"* - Hover the current email header logo (this logo is not shown in the editor, in it's full size) and click on edit/insert image - Select Image source file by clicking folder image- Upload your header logo using the file uploader, that opens up - Click on your image that you want to use - Click on OK on edit/insert image view Tada, you're done. Now do this always, as you edit the message content.* You can always edit this in the source view as well, but you then need to upload the image file manually via FTP client and define the url manually. Edited January 30, 2015 by kmn (see edit history) 1 Link to comment Share on other sites More sharing options...
sheelendra Posted January 31, 2015 Share Posted January 31, 2015 Hi, In PS 1.5.4.1 to not attach shop logo image in emails You need to edit file classes/Mail.php and change line 251 $template_vars['{shop_logo}'] = $message->attach(new Swift_Message_EmbeddedFile(new Swift_File($logo), null, ImageManager::getMimeTypeByExtension($logo))); to /*$template_vars['{shop_logo}'] = $message->attach(new Swift_Message_EmbeddedFile(new Swift_File($logo), null, ImageManager::getMimeTypeByExtension($logo))); */ This is usefull when You remove shop logo image in email templates by remove all {shop_logo} strings, and You want prevent showing logo in email attachment. It worked for disabling the logo to be sent as attachement through email. But it does not show any logo in email header. please try to reslove this issue. thanx Link to comment Share on other sites More sharing options...
juweeltje5 Posted July 24, 2015 Share Posted July 24, 2015 same problem here.... cloud 1.6 version.... my shoplogo is attached for download when i send a email to customer.... Link to comment Share on other sites More sharing options...
juweeltje5 Posted July 28, 2015 Share Posted July 28, 2015 found it! you need to edit the image as well....see picture 1 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