[Woocommerce] Renewal subscriptions firing order.created hook
-
We have monthly subscription products on our wordpress website. Each new order, the first time a customer buy the product, they receive a key. At the renewal of the subscription, this key has its expiration date changed and our code uses a webhook with Woocommerce action to check it.
Our problem is: for some customers, when they renew their subscription every month, Woocommerce is dealing with it like it is the first time the customer buy that product, firing order.created instead of order.updated and making our code create a new key for the customer.
This is the first time I work with WordPress and it’s plugins. The developer who made the website is not working at the company anymore and I was assigned to solve this bug. I’ve already read Woocommerce docs and searched for someone who has this problem, but all entries were from years ago with Woocommerce old versions.
- The topic ‘[Woocommerce] Renewal subscriptions firing order.created hook’ is closed to new replies.