Jump to content

Where can I change title of the email messages


Recommended Posts

Hello.

I can't find files where would be stored titles of email messages sent to customer.

I need to make some changes because some titles are in english and some in polish and I don't know where do I have to search.

Please help.

Thanks
Robert

Link to comment
Share on other sites

  • 2 months later...
i belive the templates are in the prestashop/mails folder. These exist for each language. I know there is a txt file and a html file

You could try changing it there and see if that works for you.


Didn't work for me. I managed to change the email text there but not the email header.
Link to comment
Share on other sites

<?php

$useSSL = true;

include(dirname(__FILE__).'/config/config.inc.php');
include(dirname(__FILE__).'/header.php');

$errors = array();

$smarty->assign('contacts', Contact::getContacts(intval($cookie->id_lang)));

if (Tools::isSubmit('submitMessage'))
{
if (!($from = Tools::getValue('from')) OR !Validate::isEmail($from))
$errors[] = Tools::displayError('invalid e-mail address');
elseif (!($message = nl2br2(Tools::getValue('message'))))
$errors[] = Tools::displayError('message cannot be blank');
elseif (!Validate::isMessage($message))
$errors[] = Tools::displayError('invalid message');
elseif (!($id_contact = intval(Tools::getValue('id_contact'))) OR !(Validate::isLoadedObject($contact = new Contact(intval($id_contact), intval($cookie->id_lang)))))
$errors[] = Tools::displayError('please select a contact in the list');
else
{
if (Mail::Send(intval($cookie->id_lang), 'contact', 'Message from contact form', array('{email}' => $_POST['from'], '{message}' => stripslashes($message)), $contact->email))
$smarty->assign('confirmation', 1);
else
$errors[] = Tools::displayError('an error occurred while sending message');
}
}
$smarty->assign('errors', $errors);

$smarty->display(_PS_THEME_DIR_.'contact-form.tpl');
include(dirname(__FILE__).'/footer.php');

?>


from /contact-form.php

Link to comment
Share on other sites

order confirmation is in classes/PaymentModule.php:

Mail::Send(intval($order->id_lang), 'order_conf', 'Order confirmation', $data, $customer->email, $customer->firstname.' '.$customer->lastname, NULL, NULL, $fileAttachment);

(Line 271 in 1.0)

And for the future, use an editor like Notepad++ (http://notepad-plus.sourceforge.net), it can search in all files for the text. Very, very usefull.

Link to comment
Share on other sites

  • 8 months later...
  • 1 month later...

In mails/lt/lang.php inserted line
$_LANGMAIL['Preparation in progress'] = 'Užsakymas vykdomas';

It looks like this now

<?php

global $_LANGMAIL;
$_LANGMAIL = array();
$_LANGMAIL['Your new admin password'] = 'Jusu naujas slaptažodis';
$_LANGMAIL['Your password'] = 'Jusu slaptažodis';
$_LANGMAIL['Welcome!'] = 'Sveiki užsuke !';
$_LANGMAIL['Order confirmation'] = 'Užsakymo patvirtinimas';
$_LANGMAIL['Message from contact form'] = 'Žinute iš užsakymu formos';
$_LANGMAIL['My personal informations'] = 'Mano asmenine informacija';
$_LANGMAIL['Message from a customer'] = 'Kliento žinute';
$_LANGMAIL['Virtual product to download'] = 'Virtualais produkto atsiuntimas';
$_LANGMAIL['Referral Program'] = 'Programa refferal';
$_LANGMAIL['Preparation in progress'] = 'Užsakymas vykdomas';
$_LANGMAIL['Package in transit'] = 'tranzitine pakuote';
?>

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