Page 1 of 1
edit rewards points email
Posted: Fri Sep 16, 2011 4:58 am
by MatthewB
Hi
where can edit the text that is sent to customer when they get reward points, or how can i stop it sending email if that is easier.
this email that currently gets sent to customer i think it is very brief
"You have received 100 Reward Points!
Your total number of reward points is now 5000."
i might be easier to not send email as i was thinking about doing a double points offer, so it might be better not to email them and once i have added the double points i will email them.
Re: edit rewards points email
Posted: Fri Sep 16, 2011 6:00 pm
by uksitebuilder
admin/language/english/sale/customer.php
Re: edit rewards points email
Posted: Fri Sep 16, 2011 6:07 pm
by MatthewB
i can't see anything in that file about reward email text
Re: edit rewards points email
Posted: Fri Sep 16, 2011 6:11 pm
by uksitebuilder
oops my bad
admin/language/english/mail/customer.php
Re: edit rewards points email
Posted: Fri Sep 16, 2011 6:12 pm
by uksitebuilder
This block of code in admin/model/sale/customer.php threw me
Code: Select all
$message = sprintf($this->language->get('text_reward_received'), $points) . "\n\n";
$message .= sprintf($this->language->get('text_reward_total'), $this->getRewardTotal($customer_id));
$mail = new Mail();
$mail->protocol = $this->config->get('config_mail_protocol');
$mail->parameter = $this->config->get('config_mail_parameter');
$mail->hostname = $this->config->get('config_smtp_host');
$mail->username = $this->config->get('config_smtp_username');
$mail->password = $this->config->get('config_smtp_password');
$mail->port = $this->config->get('config_smtp_port');
$mail->timeout = $this->config->get('config_smtp_timeout');
$mail->setTo($customer_info['email']);
$mail->setFrom($this->config->get('config_email'));
$mail->setSender($store_name);
$mail->setSubject(sprintf($this->language->get('text_reward_subject'), $store_name));
$mail->setText($message);
$mail->send();
Re: edit rewards points email
Posted: Fri Sep 16, 2011 6:16 pm
by MatthewB
still can't see the text i need to edit haha
it looks like this in email
"You have received 100 Reward Points!
Your total number of reward points is now 5000."
would it be easier to set it not to send email, if so how do i do that.
Re: edit rewards points email
Posted: Fri Sep 16, 2011 7:43 pm
by uksitebuilder
the text is in admin/language/english/mail/customer.php
bottom 3 lines
$_['text_reward_subject'] = '%s - Reward Points';
$_['text_reward_received'] = 'You have received %s Reward Points!';
$_['text_reward_total'] = 'Your total number of reward points is now %s.';
If you want to not send an email instead, then edit admin/model/sale/customer.php and delete or comment out:
Code: Select all
$message = sprintf($this->language->get('text_reward_received'), $points) . "\n\n";
$message .= sprintf($this->language->get('text_reward_total'), $this->getRewardTotal($customer_id));
$mail = new Mail();
$mail->protocol = $this->config->get('config_mail_protocol');
$mail->parameter = $this->config->get('config_mail_parameter');
$mail->hostname = $this->config->get('config_smtp_host');
$mail->username = $this->config->get('config_smtp_username');
$mail->password = $this->config->get('config_smtp_password');
$mail->port = $this->config->get('config_smtp_port');
$mail->timeout = $this->config->get('config_smtp_timeout');
$mail->setTo($customer_info['email']);
$mail->setFrom($this->config->get('config_email'));
$mail->setSender($store_name);
$mail->setSubject(sprintf($this->language->get('text_reward_subject'), $store_name));
$mail->setText($message);
$mail->send();
Re: edit rewards points email
Posted: Fri Sep 16, 2011 8:03 pm
by MatthewB
Thanks
i've just deleted the send email function.
Re: edit rewards points email
Posted: Fri Sep 21, 2012 11:48 pm
by Diuana
uksitebuilder, and how to add the store logo in the email? Thanks