• Resolved groan

    (@groan)


    Our store works on a COD payment type as we want to be able to add shipping after an order is placed. We then send a new invoice after the shipping totals are added.

    The way it is now it default to Processing and in order to make the changes I have to change the status to Pending, save then add the shipping.

    I am trying to lessen the steps to making this edit for the store owner.

    Without changing core code, is it possible to change this? I’m surprised this isn’t built into the Woocommerce functionality.

    Thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter groan

    (@groan)

    I’m surprised nobody has any thoughts on this.
    I see lots of suggestions on the web to make a function.php change.

    Can I use this process
    https://rcorreia.com/woocommerce/woocommerce-automatically-set-order-status-payment-received/

    but instead of the line

    if ( 'processing' == $order_status && ( 'on-hold' == $order->status || 'pending' == $order->status || 'failed' == $order->status ) ) {
     
     return 'completed';

    Make it

    if ( 'processing' == $order_status && ( 'on-hold' == $order->status || 'pending' == $order->status || 'failed' == $order->status ) ) {
     
     return 'pending';
    Thread Starter groan

    (@groan)

    OK, Well that didn’t work. Partly because I have no idea what I’m doing. The status remains at “processing” so clearly the filter isn’t working. Probably because the order has never been on hold, pending or failed.

    I’ll keep searching but hopefully someone will have an idea here.

    Thread Starter groan

    (@groan)

    I realize now that I can also use “On hold” to perform this. so that status will work as well. Still searching.

    Thread Starter groan

    (@groan)

    I changed the checkout to use only Check so this works for me.

    Thread Starter groan

    (@groan)

    I changed the checkout to use only Check so this works for me.

    Hey, Did you find any solution to that? I am looking for the same solution. Thanks.

    Thread Starter groan

    (@groan)

    @fznshaikh
    No I didn’t Instead I switched to making the payment type use Check and it sets the default to use On Hold which works for my purposes which is to edit the order and add shipping without having to change the status first.

    Actually there is membership on my site and using the plugin https://codecanyon.net/item/woocommerce-membership/8746370 for membership.
    Whenever a person choses COD his order goes in processing mode. And then that person is able to access the restricted content. So would you be able to shed any light on this? Thanks.
    Also, I have checked if the pages are setup properly with the restrictions. There is something with the order processing or maybe a plugin issue is what I think.

    Thread Starter groan

    (@groan)

    I don’t really know. Best to start a new thread for that issue. Get some of the bigger brains involved.

    As the topic you created is exactly what I need. You didn’t get any response. Should I make another one?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Change Default Order Status for Cash on Delivery’ is closed to new replies.