• Resolved rsl89

    (@rsl89)


    Hello everyone.

    As I understand it, the logic is this:
    upon successful payment for the goods, the payment system returns the success back to the site, and woo registers a successful purchase / payment.

    Question: how to add your function at this moment? or rather where? can you tell me the path in which file or function you can inject your code?

    The reason is the following, my WP theme has a personal account where I want to send notifications and transaction history over purchases.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support EastOfWest a11n

    (@eastofwest)

    Hi there,

    If you want to call your own function in the event of completing an order, you can use add_action with woocommerce_order_status_completed. Click here to learn how to using filter hooks.

    If you just want another email address to also receive copies of certain emails, then you could add it by going to WP Admin ? WooCommerce ? Settings ? Emails. The New Order, Cancelled Order, and Failed Order emails will allow you to add CC email addresses, like so:

    Screenshot of the WooCommerce email settings that allows you to add additional email addresses

    Yet another alternative for even more flexibility, is using an extension like Advanced Notifications to fine tune it even further.

    Plugin Support abwaita a11n

    (@abwaita)

    Hi @rsl89,

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, the above info was helpful and you were able to find a solution to your problem!

    If you have further questions, please feel free to open a new topic.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do I add my own function?’ is closed to new replies.