• Resolved masopustc

    (@masopustc)


    Hi,

    I’d like to have a confirmation mail sent to our users as soon as an order
    arrives (not when the order processing starts).
    For that I’d tried to hook into ‘woocommerce_order_status_on-hold’ to set
    the initial status of the order to ‘processing’. But it seems that this
    hook only works when manually changing the order status.

    So, is there a way to hook into when a new order arrives?
    Or is there a better way for sending the confirmation mail as soon as the
    order comes in?

    Thanks,
    christian

    http://wordpress.org/plugins/woocommerce-de/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter masopustc

    (@masopustc)

    Solved the problem!

    For all interested in this topic: I simply used the wrong hook. After a
    long investigation yesterday evening I found out that all the hooks
    named ‘woocommerce_order_status_….’ only apply when manually changing
    the status in the admin area.
    To automatically change the initial status of an order I simply have to
    hook into ‘woocommerce_thankyou’ (or in my case, as I only use bacs
    gateway for paying, into ‘woocommerce_thankyou_bacs’).

    Plugin Author David Decker

    (@daveshine)

    @masopustc:
    Hi!
    Props for solving your problem already! 🙂

    Just a general note:
    This was a general WooCommerce question that has nothing to do with my language plugin.

    I only support issues with my plugin or the translations. General WooCommerce questions are better placed the WooThemes/ WooCommerce wordpress.org forums, their community forums, GitHub.com issues or their premium support.

    Thanks, Dave 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Woocommerce: Initial status of an order’ is closed to new replies.