I get an email notification every time someone places an order, but it's just as important to get a notification when somebody wants to return something and this isn't happening.

My store is awesomely powered by OpenCart 1.5.5.1.
That's the problem. I'm already managing enough things that it's become a burden to remember checking the RMA requests in the admin each day. Life would be easier if I was sent an email notification because I never forget to check email.avvici wrote:Only to customer. You will be able to see the RMA request in the returns section.
A little help with this would be appreciated.avvici wrote: If you want an email to go to admin, you can either CC to your email address, or set up a private function to send out an email with different parameters.
My store is awesomely powered by OpenCart 1.5.5.1.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Let's pretend that you've been asked to give explicit step-by-step instructions to a 103-year-old lady who is very alert, but only touched a computer for the first time in her life yesterday. The good news is this 103-year-old lady does know what cron jobs are. The bad news is the mere instruction of "create a cron job" is very vague. What script is cron supposed to run? From where do we get this script?straightlight wrote:The best solution would be to create a cron job...
My store is awesomely powered by OpenCart 1.5.5.1.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I agree with this solution. But most people, even folks that have been working with OC for a long time don't know what that is let alone could set it up lol.straightlight wrote:The best solution would be to create a cron job so that you don't have to deal with all the emails additionally with the tasks you already have to take care of from the admin. This is what most businesses do; to split the tasks without the overkill so that on an every constant time period, the emails gets received when involved.
Code: Select all
return true;
Code: Select all
$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($this->config->get('config_email'));
$mail->setFrom($this->config->get('config_email'));
$mail->setSender('STORE NAME');
$mail->setSubject(html_entity_decode('STORE NAME Return Request', ENT_QUOTES, 'UTF-8'));
$mail->setText(strip_tags(html_entity_decode('This is a notification: a customer has requested to return a product from an order. Please log in to the Store Admin. The details are under Sales --> Returns.', ENT_QUOTES, 'UTF-8')));
$mail->send();
Code: Select all
$mail->setSender('STORE NAME');
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.
Try the XML version.apendragon wrote:True. But whatever other file I lifted the bulk of that code from, I don't think the variable store name was working. I invite anyone to help me make this better. What I have here is purely utilitarian.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Thanks for posting this. I've implemented the xml, however, it doesn't appear to be working. No emails recieved and I can see the returns in the admin... so I'm not sure as to what to say really...straightlight wrote:Try the XML version.apendragon wrote:True. But whatever other file I lifted the bulk of that code from, I don't think the variable store name was working. I invite anyone to help me make this better. What I have here is purely utilitarian.
Webmaster for: http://www.getlaidbeds.co.uk + www.mattressmoose.co.uk + www.pixellounge.co.uk
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Webmaster for: http://www.getlaidbeds.co.uk + www.mattressmoose.co.uk + www.pixellounge.co.uk
mike = http://www.gorillagear.ca
Users browsing this forum: No registered users and 69 guests