Jackie

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Only some orders automatically marked as complete #1158783
    Jackie
    Participant

    Hi Andras,

    I have been monitoring this issue and running some tests. We don’t normally sell non-ticket products, but I set up a test product, placed a few orders while logged in and as a guest, and all orders autocompleted.

    The last couple of ticket orders we received have also autocompleted. I still can’t see any discernible pattern on why some complete and others do not.

    Everything is up to date including WP 4.6.

    Unless you can think of any other way to fix this, we’ll leave it alone for now. There is a plugin called “WooCommerce Autocomplete Orders” – I may try that if the issue persists.

    Thanks for all your help!

    in reply to: Only some orders automatically marked as complete #1157031
    Jackie
    Participant

    Hi Andras, we are using PayPal for payments. I double checked all the PayPal settings and everything looks normal. The payments go through and ticket stock is reduced, but the order doesn’t get switched to complete.

    I am attaching two screenshots of the order notes for recent ticket orders. One of them did not auto-complete and I manually completed it this morning. The other, from a couple weeks ago, auto-completed at the same time the payment went through. Periodically an order will auto-complete, which makes this even more strange!

    Thanks.

    in reply to: Only some orders automatically marked as complete #1154805
    Jackie
    Participant

    Hi Andras,

    My problem is still happening. These are the steps I’ve taken:

    1. I removed the function and left the checkbox set to autocomplete orders in the tickets settings. That did not work, and orders were left as pending.

    2. I unchecked the ticket settings autocomplete box and added the Woo function back into functions.php. I just checked and three orders have come in, all pending.

    So it appears neither the function nor the checkbox is working! Any other ideas how to get the orders to auto-complete?

    Thanks for help.

    in reply to: Only some orders automatically marked as complete #1152570
    Jackie
    Participant

    Hi Andras, I am using this function:

    
    add_action( 'woocommerce_thankyou', 'custom_woocommerce_auto_complete_order' );
    function custom_woocommerce_auto_complete_order( $order_id ) { 
        if ( ! $order_id ) {
            return;
        }
    
        $order = wc_get_order( $order_id );
        $order->update_status( 'completed' );
    }
    

    I’ll try removing this and using the checkbox in the plugin and see what happens.

    Thanks!
    Celeste

Viewing 4 posts - 1 through 4 (of 4 total)