Jump to content

Email Notification Sender name different from the Shop Name


jiodfjansdfoijasdf

Recommended Posts

Hello,

I googled hard and I'm amazed I didn't find anything on the topic.

I need to have the email sender name different from the setting in BO > Preferences > Contact > Stores > Store Name

The issue is that the same Name is used for the pages' title, footer, contact page, AND email name sender. But my company registered name is different than the store name. So I need to have the registration name everywhere but the email sender name should be my store name.

The simplest and fastest solution I thought about is just hardcoding the shop name into the function in Prestashop files where the email is actually sent but wasn't able to locate the file.

Hope someone will be able to help!
Regards,
Paul

Edited by jiodfjansdfoijasdf (see edit history)
Link to comment
Share on other sites

I was actually able to locate this in classes/Mail.php on line 263 and changed:

$fromName = $configuration['PS_SHOP_NAME'];
// to:
$fromName = 'My Shop Name';

Also changed the line 545:

$templateVars['{shop_name}'] = Tools::safeOutput('My Shop Name');

But I really don't think that this is the best solution tho! Can anyone point to a better approach?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...