Jump to content

How to... email


Recommended Posts

1. How to (better: where) change email subjects for order confirmation etc.

2. Where to change status: FREE ORDER status on history.php


1*Please, i really need this to solve, because emails sent from shop end in SPAM folder. Subject is now like this: [PS_SHOP_NAME]Order status - I just want it like Order status - customized if possible.

2*Free order shows if order 5€ item and pay with 5€ cupons. I have edited FREE ORDER in: order.php :

if ($cart->getOrderTotal() <= 0)
   {
       $order = new FreeOrder();
       $order->validateOrder(intval($cart->id), 2, 0, Tools::displayError('FREE ORDER'));
       Tools::redirect('history.php');
   }


but doesn't help...


THANKS IN ADVANCE, i need it as soon as possible!!!

Thanks / Merci / Grazie / Danke schon / Hvala!!!
WODP

Link to comment
Share on other sites

For the question 1 :

Change the ligne 93 of the file /classes/Mail.php :

$message = new Swift_Message('['.Configuration::get('PS_SHOP_NAME').'] '.((is_array($_LANGMAIL) AND key_exists($subject, $_LANGMAIL)) ? $_LANGMAIL[$subject] : $subject));



with

//$message = new Swift_Message('['.Configuration::get('PS_SHOP_NAME').'] '.((is_array($_LANGMAIL) AND key_exists($subject, $_LANGMAIL)) ? $_LANGMAIL[$subject] : $subject));
$message = new Swift_Message((is_array($_LANGMAIL) AND key_exists($subject, $_LANGMAIL)) ? $_LANGMAIL[$subject] : $subject);




It will remove ALL the [sHOP_NAME] for ALL emails.



For your second problème, I'll need more information.

You WANT the order to be shown as FREE ORDER if the amount of the cart (included tax and shippment) is the same as the cupons ?

Link to comment
Share on other sites

WOOOWW!!!
SotEW THANKS!!!!!

for second question:

You WANT the order to be shown as FREE ORDER if the amount of the cart (included tax and shippment) is the same as the cupons ?

It already shows FREE ORDER, but i prefer GRATIS.

I just want to translate expression: FREE ORDER to GRATIS. Than in viewing My orders under Status: i would like to be GRATIS instead of FREE ORDER.

I have changed 'FREE ORDER' line shown in my first post to 'GRATIS', but it still shows FREE ORDER under My orders (history).

What am i doing wrong?

Much appreciated!!!
WODP

edit: now it's working. THANKS AGAIN SowED!!
Link to comment
Share on other sites

  • 3 months later...

Hi WODP and SotEW, problem no 1, is it working on your site?
I've edit the email title but still goes to spam folder. I think its not because of the email title as I've tried on few other website(using Presta) and in goes well to my inbox. I'm using 1.1 final.

This is example on my case:

- My Site title : MySiteTitle.Com

- when user register : [MySiteTitle.Com] Welcome!

Link to comment
Share on other sites

  • razaro changed the title to How to... email

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