Jump to content

How to remove shop name in email subject


qubo2017

Recommended Posts

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 by qubo2017 (see edit history)
Link to comment
Share on other sites

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

  • Thanks 5
Link to comment
Share on other sites

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

  • 8 months later...
  • 9 months later...
  • 9 months later...
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 by Juan Luis Ferret (see edit history)
Link to comment
Share on other sites

  • 1 month later...
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

  • 2 weeks later...
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

  • Thanks 1
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
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

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...