Post by MatthewB » Fri Sep 16, 2011 4:58 am

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.

Matthew


Active Member

Posts

Joined
Sat Jul 23, 2011 5:18 am
Location - Sunderland Tyne and Wear

Post by uksitebuilder » Fri Sep 16, 2011 6:00 pm

admin/language/english/sale/customer.php

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by MatthewB » Fri Sep 16, 2011 6:07 pm

i can't see anything in that file about reward email text

Matthew


Active Member

Posts

Joined
Sat Jul 23, 2011 5:18 am
Location - Sunderland Tyne and Wear

Post by uksitebuilder » Fri Sep 16, 2011 6:11 pm

oops my bad

admin/language/english/mail/customer.php

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by uksitebuilder » Fri Sep 16, 2011 6:12 pm

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();

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by MatthewB » Fri Sep 16, 2011 6:16 pm

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.

Matthew


Active Member

Posts

Joined
Sat Jul 23, 2011 5:18 am
Location - Sunderland Tyne and Wear

Post by uksitebuilder » Fri Sep 16, 2011 7:43 pm

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();

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by MatthewB » Fri Sep 16, 2011 8:03 pm

Thanks

i've just deleted the send email function.

Matthew


Active Member

Posts

Joined
Sat Jul 23, 2011 5:18 am
Location - Sunderland Tyne and Wear

Post by Diuana » Fri Sep 21, 2012 11:48 pm

uksitebuilder, and how to add the store logo in the email? Thanks

Newbie

Posts

Joined
Wed Jun 06, 2012 9:20 am
Who is online

Users browsing this forum: No registered users and 97 guests