rkvisit on "[Plugin: WooCommerce] No emails if retry the payment"

ساخت وبلاگ

The thing is when customer put an order and if it fails(let's say credit card error) he get the chance to pay again.My issue is order gets complete if the second pay was successful but no email send to customer saying order completed. What can be the issues? Any particular places i need to edit?

https://wordpress.org/plugins/woocommerce/

hmm i managed to solve this a sort of a way by checking the order status failed or pending and update the status into complete when in transaction complete in my payment gateway!.But still the issue is there for BACS!

if ($order->status == 'pending' || $order->status == 'failed') { //$order->update_status( 'on-hold' ); $order->update_status('completed',"payment complete"); } $order->payment_complete();

What was the order status transition? Look at the order notes.

rkvisit
Member
Posted 24 minutes ago #

its Awaiting BACS payment Order status changed from Failed to On Hold.

Since this is on-hold, only admin will get an email until you process it.

rkvisit
Member
Posted 5 minutes ago #

hmm but the email went if we manage to transfer at the first time.but if i failed first attempt and try the second time using pay button no email will trigger.(Ex: lets say got issue when pay by credit card came back and added bank transfer and proceeded).Ho i can identify this is a second attempt and then trigger the email as you said its on hold!.

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 184 تاريخ : پنجشنبه 20 خرداد 1395 ساعت: 17:08