qubo2017 Posted March 20, 2017 Share Posted March 20, 2017 (edited) Hi all MY prestashop version 1.6.1.1 How can i remove the {shop_name} from the subject, it shows the shop names twice both in the email title and subjuct. I want to make it cool and clean like this: {shop_name} order confirmation you order has succesfully ............ and not like this: {shop_name} {shop_name}order confirmation you order has succesfully ............ I did my homework by searching the forum for hours, and found these 2 solution, but no good for me. I tried this method below in classes/Mail.php, not working $subject = '['.Configuration::get('PS_SHOP_NAME', null, null, $id_shop).'] '.$subject; change to $subject = $subject; I tried this method below in override/classes/Mail.php , not working $message = new Swift_Message($subject); I have a email tempate module installed, I am curently using it. I am not sure if this is the reason why it is not working. Could anyone give me some advise? Edited March 20, 2017 by qubo2017 (see edit history) Link to comment Share on other sites More sharing options...
HanzCZ Posted March 21, 2017 Share Posted March 21, 2017 Hi, classes/Mail.phpChange:$subject = '['.Configuration::get('PS_SHOP_NAME', null, null, $id_shop).'] '.$subject;To://$subject = '['.Configuration::get('PS_SHOP_NAME', null, null, $id_shop).'] '.$subject; It works for me 5 Link to comment Share on other sites More sharing options...
qubo2017 Posted March 21, 2017 Author Share Posted March 21, 2017 Hi, classes/Mail.php Change: $subject = '['.Configuration::get('PS_SHOP_NAME', null, null, $id_shop).'] '.$subject; To: //$subject = '['.Configuration::get('PS_SHOP_NAME', null, null, $id_shop).'] '.$subject; It works for me Thank you so much Hanz It actually works! Now my emails subjects are nice and clean ! Link to comment Share on other sites More sharing options...
ginko64 Posted December 8, 2017 Share Posted December 8, 2017 hi, someone know if this solution work with version 1.7.2.4 ? thanks in advance Link to comment Share on other sites More sharing options...
DARKF3D3 Posted October 1, 2018 Share Posted October 1, 2018 Yes, for me worked on PS1.7.4.2. I simply commented out line 461: $subject = '['.Configuration::get('PS_SHOP_NAME', null, null, $idShop).'] '.$subject; 2 Link to comment Share on other sites More sharing options...
Juan Luis Ferret Posted July 14, 2019 Share Posted July 14, 2019 (edited) On 3/21/2017 at 10:06 AM, HanzCZ said: Hi, classes/Mail.php Change: $subject = '['.Configuration::get('PS_SHOP_NAME', null, null, $id_shop).'] '.$subject; To: //$subject = '['.Configuration::get('PS_SHOP_NAME', null, null, $id_shop).'] '.$subject; It works for me PRESTASHOP 1.7.6.0 Hi I have a problem with Shop Name in emails, appears "My shop" and don´t take the real Shop name I modified the Mail.php as HanzCZ explained in the post before and works for email Subject, but still appears in the rest of the email where "Shop Name" is used. Please any ideas to solve all the fields in emails where "Shop Name" is used. Thanks JF Edited July 14, 2019 by Juan Luis Ferret (see edit history) Link to comment Share on other sites More sharing options...
SinclairLT Posted September 12, 2019 Share Posted September 12, 2019 On 7/14/2019 at 6:46 AM, Juan Luis Ferret said: PRESTASHOP 1.7.6.0 Hi I have a problem with Shop Name in emails, appears "My shop" and don´t take the real Shop name I modified the Mail.php as HanzCZ explained in the post before and works for email Subject, but still appears in the rest of the email where "Shop Name" is used. Please any ideas to solve all the fields in emails where "Shop Name" is used. Thanks JF For me the same problem with Shop name in emails do not want to change in all templates. Any ideas? Link to comment Share on other sites More sharing options...
dortadamas Posted September 22, 2019 Share Posted September 22, 2019 On 7/14/2019 at 3:46 AM, Juan Luis Ferret said: PRESTASHOP 1.7.6.0 Hi I have a problem with Shop Name in emails, appears "My shop" and don´t take the real Shop name I modified the Mail.php as HanzCZ explained in the post before and works for email Subject, but still appears in the rest of the email where "Shop Name" is used. Please any ideas to solve all the fields in emails where "Shop Name" is used. Thanks JF Try this Thanks to DataKick To rename it, you'll need to jump through some hoops. enable multistore - Shop Parameters > General > Enable Multistore go to Advanced Parameters > Multistore find your store, change its name, and save disable mutlistore again in Spanish cortesía de Calderón Ponce para pestashop 1.7.6 1 ir back office parámetros de tienda después configurar, activar multimedia después guardar 2 después ir a parámetros avanzados, multimedia, ahí mismo puedes modificar el nombre de tu tienda siguiendo unos sencillos pasos 3, después volver a parámetros de tienda desactivar multimedia guardar con eso pasos cambias en nombre de tu tienda 1 Link to comment Share on other sites More sharing options...
ilisiaraul Posted October 1, 2019 Share Posted October 1, 2019 dortadamas fix works., PS 1.7.6.1 Link to comment Share on other sites More sharing options...
Lezardo Posted October 7, 2019 Share Posted October 7, 2019 Worked for me too: PS 1.7.6.1 Thx a lot ! Link to comment Share on other sites More sharing options...
SebyM Posted October 18, 2019 Share Posted October 18, 2019 On 3/21/2017 at 5:06 PM, HanzCZ said: Hi, classes/Mail.php Change: $subject = '['.Configuration::get('PS_SHOP_NAME', null, null, $id_shop).'] '.$subject; To: //$subject = '['.Configuration::get('PS_SHOP_NAME', null, null, $id_shop).'] '.$subject; It works for me Thank you for this!! Link to comment Share on other sites More sharing options...
Sayman Posted July 13 Share Posted July 13 Thank you, worked 1.6.1.11 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