Problem
On a certain combination of settings, it can happen that WooCommerce sends the order email before the payment is confirmed in wallee. We observed this behaviour especially in combination with the use of the GermanMarket plugin that wants to ensure compliance with German Regulation.
The German Market plugin alters WooCommerce in way that once the "Order Now" button is pressed the order is confirmed and the email is sent. This is a behaviour that certain merchants do not deem acceptable.
Solution
With a small change in the code you can surpress this. You can surpress this behaviour with a change in the functions.php
<?php add_filter( 'woocommerce_gzd_instant_order_confirmation', 'my_child_disable_instant_order_confirmation', 1, 10 ); function my_child_disable_instant_order_confirmation( $disable ) { return false; } ?>
Comments
0 comments
Please sign in to leave a comment.