• Resolved paulamann

    (@paulamann)


    when the order status changes, the invoice status is changed automatically. We would like to unhook the change of invoice_status from order_status_change.

    F.ex. the order_status is changed to “processing”, the invoice_status is changed as well. How can we stop this behaviour?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support con

    (@conschneider)

    Engineer

    Hi there,

    When you say “the invoice status is changed automatically.” – are you referring to the invoice status of your PDF invoices? If so, which plugin do you for managing pdf invoices?

    Kind regards,

    Thread Starter paulamann

    (@paulamann)

    Yes, its germanize that handles the PDF invoices

    Plugin Support con

    (@conschneider)

    Engineer

    Hi again,

    Yes, its germanize that handles the PDF invoices

    I see.
    I think Germanized has this documented here: https://vendidero.de/alles-was-du-ueber-den-bestellstatus-in-woocommerce-wissen-musst

    For example this seems to be the invoice generation: https://d.pr/i/oKbbCm

    The function name you are looking for is probably in the vicinity of this one: https://d.pr/i/6lteAE

    Kind regards,

    Thread Starter paulamann

    (@paulamann)

    thank you, we solved it by editing two functions in our childtheme:

    remove_action( ‘woocommerce_order_status_changed’, array( ‘Hooks’, ‘on_sub_order_change’ ), 99 );
    remove_action( ‘woocommerce_order_status_changed’, array( ‘Hooks’, ‘on_order_status_change’ ), 10,4 );

    there we changde the updat_status to a custom status

    thank you for you help

    Plugin Support Shohan Hossain Nabil – a11n

    (@sohanhossain)

    Hello @paulamann,

    Great! Good job solving that. Also, thanks for sharing the solution. It is definitely going to help others.

    Since the issue is resolved now, I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘unhook invoice_status_change from order_status_change’ is closed to new replies.