php - Order Confirmation/Completion email not sent for GUESTs in Woocommerce -


so have issue , aware of bugs , problems around smtp , wp_mail in woocommerce wordpress , i've read all...

i have different ,emails site sent(using sandgrid) using paidmembershipspro users paid membership email after made order users free membership or users not loggedin , paing(paypal getaway) per product/order not getting 'completed order' email info works paid membership users...

so didn't found similar problem ,, user filling billing info including email , , can see in woocommerce > orders orders made guest , email saved , in completed state...
if have idea how fix more glad hear..

so in end after digging lot have understood problem somewhere in process of completing order , why email not sent,, wrote action hook fixes it...

function woocommerce_payment_complete( $order_id ) { $order = new wc_order($order_id); $order->update_status( 'processing' ); $order->update_status( 'completed' ); } add_action('woocommerce_api_wc_gateway_paypal','mysite_woocommerce_payment_complete',1 );


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -