I am trying to modify the page thanks to buy at WooCommerce, at least for the method of payment by bank check.
All I want to do is show a summary of the order and empty the cart, because currently shows me an empty page with the text that the cart has been emptied. Is there a hook that allows me to insert code on the page thanks for paying by bank check?
I found the 'woocommerce_thankyou' action but I do not know what to do with it, does anyone explain to me a little?
you can target cheque payment method using
woocommerce_thankyou_cheque
action hook, that will display a custom message on order received page for cheque payments:Code goes in function.php file of your active child theme (or theme) or also in any plugin file.
This code is tested and works.