You can add the code to a .js file of course, but in that case do not forget to pass the url parameter ...
php echo apply_filters( 'woocommerce_thankyou_order_received_text', __( ' Thank you. Your order has been received!', 'woocommerce' ), $order ); ...
... to add some further instruction, which you can do using the filter woocommerce_thankyou_order_received_text. woocommerce-thankyou-text ...
add_filter( 'woocommerce_thankyou_order_received_text', ' my_order_received_text', 10, 2 ); function my_order_received_text( $text, $order ) ...
Add "Print receipt" link to Order Received page and View Order page. */. function ... echo 'Print receipt' ;. }
add_filter('woocommerce_thankyou_order_received_text'
add_filter( 'woocommerce_thankyou_order_received_text'
woocommerce_thankyou_order_received_text add javascript.
We encourage authors to include ACF and have only a few simple rules to follow, which we hope you respect. This guide outlines the do's and don'ts when ...
woocommerce_thankyou_order_received_text add javascript.