{shop_logo} not working in mails
new

By Patryk Wróbel, 2 years ago

Hello. We have prestashop 1.7 and there is a problem that in your email templates for products or shop reviews {shop_logo} is not working so we cannot have a shop logo as image in e-mail.

By Petr Hucik, 2 years ago

This email template variable is managed by prestashop core, not by the revws module.

https://github.com/PrestaShop/PrestaShop/blob/5fa01cc46d289968c2da20800bbdceb5b4da80a1/classes/Mail.php#L513-L528

By Patryk Wróbel, 2 years ago

Hmm it is strange because in other e-mail templates it is working, but in this module not :( Do you have any idea why?

By Petr Hucik, 2 years ago

I have no idea. For me, all revws emails are properly sent with logo.

By Patryk Wróbel, 1 year ago

Hello again. I have contacted my prestashop developers and they say that variable {shop_logo} is not processed in your module and this is why it isn't working. I know that you wrote about mail function which is managed by prestashop core but they still say that variable is not working in module.

By Petr Hucik, 1 year ago

Your "prestashop developers" are wrong.

My module email template file contains {shop_logo} variable. My module calls method Mail::send() in order to send email. This is method in core, and it ensures that the {shop_logo} variable is declared and populated. See my previous code reference.

If the core code does not work, then it's probably due to some override, module, or whatnot. It's not an issue with my module.