Ask your WordPress questions! Pay money and get answers fast! (more info)

How to disable wcs_email_processing_renewal_order for 0$ renewal orders

  • SOLVED

Hi,

I use Woocommerce Subscriptions and would like to disable wcs_email_processing_renewal_order emails for renewal orders where the order amount is 0$.

How can I do that ?

Thank you

Answers (2)

2017-01-30

Rempty answers:

Hello
I found this, maybe can help you.

https://gist.github.com/thenbrent/eec1d7a21e30066f6779

2017-02-01

Francisco Javier Carazo Gil answers:

Good afternoon, I am going to see in WooCommerce subscription code if there is some hook to use and I tell you.


Francisco Javier Carazo Gil comments:

I have been seeing it and there is no any hook: https://github.com/wp-premium/woocommerce-subscriptions/blob/26e83f89c82b7b02a3d205cf183d7abc92927004/includes/emails/class-wcs-email-customer-processing-renewal-order.php

So the only way to do it would be the one sent by Rempty. It is not so clear, but it should work.


Francisco Javier Carazo Gil comments:

Please read the comment, I forgot to use the checkbox to send it.