Page 1 of 1

Sending Gift Certificate recipient email automatically

Posted: Tue Oct 18, 2016 1:58 am
by darth_danny
Hi,

I am testing Gift Certificates in Opencart 2.3.0.2. The notification emails to the client and admin are sent but the Gift Certificate is not sent on successful purchase. To get the email sent I had to go to the Gift Voucher list in the admin section and sent it from there.

Is there a way the email to the recipient can be sent automatically on successful purchase/order of a Gift Certificate as opposed to the admin having to send it from the Gift Voucher list every time?

Re: Sending Gift Certificate recipient email automatically

Posted: Tue Oct 18, 2016 2:14 am
by Johnathan
I believe the gift voucher e-mail is sent when the order status is changed to the "Complete" status, as set in your System > Settings > Options area. If you have your payment method set to a non-complete status (e.g. Pending) then it won't appear until you change the order status in the admin area.

Re: Sending Gift Certificate recipient email automatically

Posted: Tue Oct 18, 2016 2:23 am
by darth_danny
That was what I had assumed but its still not being sent. In System->Settings->Option, the default status when an order is processed is set to complete. When the Gift Certificate is successfully purchased, the status in the dashboard and orders list is complete. All other notification emails are sent but the Gift certificate email is not being sent to the recipient.

Re: Sending Gift Certificate recipient email automatically

Posted: Tue Oct 18, 2016 2:45 am
by Johnathan
Hmm...not sure then. I haven't heard of any bugs in OpenCart 2.3 related to this, but it's certainly possible. Try searching the 2.3 bug topic and see if anyone has mentioned anything about this. If not, you might try uninstalling any mods if you've installed them, to see if those are affecting things. If it happens in a standard installation, then it's either an OpenCart bug, or a problem with mail on your server (which it doesn't sound like is the case).

Re: Sending Gift Certificate recipient email automatically

Posted: Wed Oct 19, 2016 2:29 am
by darth_danny
I have found some mention of the same issue but in earlier versions of Opencart . Haven't found anything related to 2.3.0.2.

Re: Sending Gift Certificate recipient email automatically

Posted: Wed Oct 19, 2016 9:46 pm
by niallbyrne73
I have same issue as Danny. No solution yet for Opencart 2.3.0.2

Re: Sending Gift Certificate recipient email automatically

Posted: Fri Dec 09, 2016 2:06 am
by Johnathan
I've been digging through the code and I don't see anywhere the voucher is automatically sent in 2.3. I reported it as an issue on github, so hopefully it will either be fixed in the next update of OpenCart, or someone will point me to where this should be happening in the code.

Re: Sending Gift Certificate recipient email automatically

Posted: Mon Jul 10, 2017 5:49 am
by DrSnake
Any update?

Re: Sending Gift Certificate recipient email automatically

Posted: Fri Aug 18, 2017 8:30 am
by SherpaDesign
I'm using version 2.0.3.1 and also have no automatic sending of vouchers. Settings for all payment gateways are set to Complete status as are the store settings for both Order Status & Complete Order Status...

Re: Sending Gift Certificate recipient email automatically

Posted: Fri Aug 18, 2017 8:55 am
by SherpaDesign
For 2.0.3.1 the solution was to edit /catalog/model/checkout/order.php line 853.
Replace:

Code: Select all

if (in_array($order_info['order_status_id'], $this->config->get('config_complete_status'))) {
With:

Code: Select all

if (in_array($order_status_id, $this->config->get('config_complete_status'))) {
This solution was taken from: https://github.com/opencart/opencart/pu ... bd72d6e797

Re: Sending Gift Certificate recipient email automatically

Posted: Sat Mar 10, 2018 9:32 pm
by ocdevgo
The same issue with opencart 2.3.0.2
Any help!?

Re: Sending Gift Certificate recipient email automatically

Posted: Thu Dec 27, 2018 11:30 am
by takayuki
I've got the same issue with 2.3.0.2, too. Anyone got a fix?

Re: Sending Gift Certificate recipient email automatically

Posted: Thu May 09, 2019 3:10 pm
by sterikal
I've got the same issue using 2.3.02

Has anyone found a fix yet?