• Resolved barrex

    (@barrex)


    All our payments are via bank transfers no credit cards.
    That is why we need that default order status is “On hold” so that items are removed from storefront as soon as checkout is completed.

    I set up your plugin to have default order status “On hold” but all new orders still show “Payement pending”.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter barrex

    (@barrex)

    I have a plugin called:
    Croatian payment slip generator for WooCommerce by?Petar ?estak?
    “Payment pending” bug happens when someone chooses to use payment option set up with that plugin in checkout.
    Option:
    “CROATIA ONLY Pay by payment slip, mobile banking or barcode”

    How to force your plugins default status to be “On hold” for all payment options?

    Hello, we are using the default woocommerce hooks to set the status to be the very first status set as the order is placed, to avoid user getting 2 notifications. What usually happens is the payment method forcing to a specific status also, so it has priority. A possible solution to your case is setting the status on your functions.php file like this:

    add_action('woocommerce_thankyou', 'woocommerce_thankyou_change_order_status', 10, 1 );
    function woocommerce_thankyou_change_order_status( $order_id ){
    if( ! $order_id ) return;
    $order = wc_get_order( $order_id );
    $order->update_status( 'on-hold' );
    }

    Thread Starter barrex

    (@barrex)

    Thank you. It worked.

    Rated 5 stars.

    • This reply was modified 9 months, 1 week ago by barrex.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Default order status not changing’ is closed to new replies.