Jump to content

Edit History

Mercader Virtual

Mercader Virtual

Hi,

I know this question has been asked several times. I tried different solutions but something weird is going on:
 

I edited Mail.php and managed to strip out the shop name $subject.

// Hard-coded replacement, just in case.
$subject = str_replace("[".Configuration::get('PS_SHOP_NAME')."] ", "", $subject);
$message->setSubject($subject);


I checked the $message object just before swift execution:

$send = $swift->send($message);

The subject appears to be correct (without the shop name),  as expected. But guess what?

Still some emails are arriving with that freaking "[Shop Name]" prefix! Funny enough, not all, that is, some are arriving without the shop name.

I thought it was something related to smarty cache, so I clear the cache. It didn't work :(

Any other ideas? Thanks.

 

Mercader Virtual

Mercader Virtual

Hi,

I know that this question has been asked several times, I tried different approaches and something weird is going on:
 

I edited Mail.php and managed to strip out the shop name $subject.

// Hard-coded replacement, just in case.
$subject = str_replace("[".Configuration::get('PS_SHOP_NAME')."] ", "", $subject);
$message->setSubject($subject);


I checked the $message object just before swift execution:

$send = $swift->send($message);

The subject appears to be correct (without the shop name),  as expected. But guess what?

Still some emails are arriving with that freaking "[Shop Name]" prefix! Funny enough, not all, that is, some are arriving without the shop name.

I thought it was something related to smarty cache, so I clear the cache. It didn't work.

Any other ideas? Thanks.

 

×
×
  • Create New...