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.
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.
Matthew
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();
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.
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.
Matthew
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:
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();
Who is online
Users browsing this forum: No registered users and 27 guests