Jump to content

Remove email logo attach and replace to a logo link [1.6.0.9]


sofree

Recommended Posts

Related to this topic:

http://www.prestashop.com/forums/topic/271002-solved-help-to-remove-email-logo-attach-in-ps-1531/

 

If you want deliver messages to your customers without your logo as attachment, but as a link (size of every email smaller in this case):

 

Change file:

classes/Mail.php

around line 270

            if ((Context::getContext()->link instanceof Link) === false)
                Context::getContext()->link = new Link();

            /* 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)));
                $template_vars['{shop_logo}'] = Context::getContext()->link->getMediaLink(_PS_IMG_.Configuration::get('PS_LOGO_MAIL', null, null, $id_shop));

I think it's clear...

Link to comment
Share on other sites

×
×
  • Create New...