I would like to know if there is some way to send a custom email to a user when he makes a (first) payment in Woocommerce. (I am using Woocommerce Subscriptions).
This email is about instructions to learn how to set up an account on the website. So I think, maybe there’s a problem. If the email is sent to an user each time there’s a payment, then, when the subscription is renewed, I think they are going to receive the same email of the instructions.
The intention is this email with the instructions would only be sent to users for the first payment.
Thanks in advance!
2
Answers
I would advice you to do some research before you post your questions. Stack Overflow is not a replacement for a webdeveloper 😉
I’m unsure if the subscription start date stays unchanged, But that’s something you could test.
More info on the WC_Subscription class
we can send a custom mail for first time. you can use
when user complete subscription, your order shows as processing we can use woocommerce_order_status_processing hook or is it shows as completed we can use woocommerce_order_status_completed hook.
you can change order status in woocommerce subscription plugin
to change from email