Want to add a message to Checkout Order Details page
-
I want to add a message between the Order Details and Customer Details section of the checkout page. I have the order-details.php file open and I found the spot where a div could be added between the two sections.
What I want to add is a line of text and a link to another page to sign up for a newsletter.
My confusion is if I should edit this file and stick it in my child theme’s WooCommerce folder, or should I create an action or a filter in my functions.php file.
This line of code…
<?php do_action( 'woocommerce_order_details_after_order_table', $order ); ?>
… is this the beginning of the Customer Details section? Or the actual section in full?
I’m just not sure where I would either place the code in orders-placed.php, or what action or filter I would use to insert a message on functions.php. I have referenced your Hooks list, but it’s unclear if I need to add a new hook or filter an existing hook.
- The topic ‘Want to add a message to Checkout Order Details page’ is closed to new replies.