Hello RK
Thank you so much for the reply, this issue is making me crazy!
So I realized the problem from earlier, regarding the Pre-orders autocompleting, was because I used (and forgot about) this bit of code, in order to force PayPal transactions to complete automatically, so the customer would get an immediate download link, without me having to manually set it to complete:
/**
* Auto Complete all WooCommerce orders.
* Add to theme functions.php file
*/
add_action( 'woocommerce_thankyou', 'custom_woocommerce_auto_complete_order' );
function custom_woocommerce_auto_complete_order( $order_id ) {
global $woocommerce;
if ( !$order_id )
return;
$order = new WC_Order( $order_id );
$order->update_status( 'completed' );
}
I believe this is why the pre-orders were doing that.
NOW, I’ve deleted that bit of code, and now I can’t seem to get ‘digital’ and ‘virtual’ products to autocomplete after payment with PayPal.
I have used the ‘Woocomerce Order Status Manager’ plugin, and it seems to do nothing.
I’m wondering now if it has to do with PayPal IPNs. I’ve set the IPN up, but maybe there’s some step somewhere that I’m missing? This is the Notification URL that I’m using: https://highandlonelyrecords.com/?wc-api=WC_Gateway_Paypal
I’ve also tried the ‘Woocommerce – Autocomplete Orders’ plugin. Which actually does force paypal items to autocomplete, but strangely ONLY when set to ‘All Orders’. Not merely ‘Virtual’ and ‘Downloadable’ products, which is what I need.
So basically right now, my problem is twofold: 1)I need PayPal transactions for Digital and Virtual products only, to autocomplete, thereby sending an email immediately to the customer, so they can download the file. And 2)I need the exception to be for Pre-orders, so that they DO NOT get an email immediately for the download link…
Is this a super confusing problem? What am I missing? Is there possibly a reputable company that I could hire for an affordable one time fee, to try to solve this? Because it’s the last thing I believe, and once we figure it out, we can start using the site… it’s really driving me crazy!
Thank you to anyone who may have any suggestions!