Post by darth_danny » Tue Oct 18, 2016 1:58 am

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?

New member

Posts

Joined
Wed Jul 27, 2016 5:41 pm

Post by Johnathan » Tue Oct 18, 2016 2:14 am

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.

Image
Image Image Image Image


User avatar
Global Moderator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by darth_danny » Tue Oct 18, 2016 2:23 am

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.

New member

Posts

Joined
Wed Jul 27, 2016 5:41 pm

Post by Johnathan » Tue Oct 18, 2016 2:45 am

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).

Image
Image Image Image Image


User avatar
Global Moderator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by darth_danny » Wed Oct 19, 2016 2:29 am

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.

New member

Posts

Joined
Wed Jul 27, 2016 5:41 pm

Post by niallbyrne73 » Wed Oct 19, 2016 9:46 pm

I have same issue as Danny. No solution yet for Opencart 2.3.0.2

Newbie

Posts

Joined
Wed Oct 19, 2016 9:44 pm

Post by Johnathan » Fri Dec 09, 2016 2:06 am

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.

Image
Image Image Image Image


User avatar
Global Moderator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by DrSnake » Mon Jul 10, 2017 5:49 am

Any update?

New member

Posts

Joined
Thu Jul 06, 2017 12:24 pm

Post by SherpaDesign » Fri Aug 18, 2017 8:30 am

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...

Newbie

Posts

Joined
Fri Sep 07, 2012 9:57 am

Post by SherpaDesign » Fri Aug 18, 2017 8:55 am

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

Newbie

Posts

Joined
Fri Sep 07, 2012 9:57 am

Post by ocdevgo » Sat Mar 10, 2018 9:32 pm

The same issue with opencart 2.3.0.2
Any help!?

Newbie

Posts

Joined
Wed Feb 21, 2018 10:31 pm

Post by takayuki » Thu Dec 27, 2018 11:30 am

I've got the same issue with 2.3.0.2, too. Anyone got a fix?

New member

Posts

Joined
Thu Aug 13, 2009 10:16 pm

Post by sterikal » Thu May 09, 2019 3:10 pm

I've got the same issue using 2.3.02

Has anyone found a fix yet?

New member

Posts

Joined
Sat Nov 12, 2016 5:33 pm
Who is online

Users browsing this forum: No registered users and 7 guests