mollie / WooCommerce

Official Mollie extension for WooCommerce
https://wordpress.org/plugins/mollie-payments-for-woocommerce/
Other
130 stars 53 forks source link

disable mollie email for banktransfer order #608

Open apocratus opened 2 years ago

apocratus commented 2 years ago

We have a customer using the mollie woocommerce plugin who would like to disable the mollie email (not the woocommerce email) when someone orders their product and pays with a banktransfer. I've been looking at the code and removing the billingEmail from the mollie call should do the trick, I think. But I cannot find the hook I should use to remove it just from this call. Any help would be greatly appreciated.

apocratus commented 2 years ago

Maybe a bit more explanation. By letting the customer fill in the Billing email the billing email is automatically send to that emailaddress, it seems to be impossible to disable that email. Normally this would not be a problem, but in this particular project the billing email should not be send to the customer because his organisation is the billing participant, and the bills are paid in another way.

I would expect this to be solvable through the usage of some of the hooks or filters available in your plugin, but I have not found anything definitive. Removing the billingEmail from the whole process doesn't seem like a good idea as the client still wants that for profiling etc. But removing and re-adding it seems nigh impossible. Maybe I am looking at the problem wrong and have overlooked something basic.