jiodfjansdfoijasdf Posted July 10, 2024 Share Posted July 10, 2024 (edited) 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 July 10, 2024 by jiodfjansdfoijasdf (see edit history) Link to comment Share on other sites More sharing options...
Prestashop Addict Posted July 10, 2024 Share Posted July 10, 2024 Please PS version Link to comment Share on other sites More sharing options...
jiodfjansdfoijasdf Posted July 10, 2024 Author Share Posted July 10, 2024 Ah, sorry! 8.1.6 Link to comment Share on other sites More sharing options...
jiodfjansdfoijasdf Posted July 10, 2024 Author Share Posted July 10, 2024 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 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