Try this custom hooked function in woocommerce_thankyou action hook: add_action( 'woocommerce_thankyou', 'custom_content_thankyou' ...
wp_ajax_{ACTION} add_action( ' wp_ajax_nopriv_collect_feedback', ...
... Display order custom meta data in Order received (thankyou) page add_action ('woocommerce_thankyou', 'srd_teilnehmer_thankyou', 10, ...
$order = wc_get_order( $order_id );. /**. * Put your tracking code here. * You can get the order total etc e.g. $order->get_total();. */. // This is the order total.
PHP Snippet: Add Content to the WooCommerce Thank You Page
//functions.php add_action( 'wp_footer', 'hasLoadedPlayPage', 20 ); function hasLoadedPlayPage( $order ){ if( !is_wc_endpoint_url( 'order-received' ) ) return; ...
redirect empty checkouts and completed orders. add_action(
On the 'checkout/order-received' page it displays the name of the
Thus, the order received page can be used as a starting point for this new customer relationship. There we can provide guidance and tools to ...
It redirects you to a simple Thank You page (or “Order received” page how is it called sometimes).