Add Custom Message in Checkout
-
Hi there
I would like to add a custom message to the Checkout Page, in the order review, just after the Shipping options, before the Total.
I have tried to add several codes to the functions.php file but none work well. They all add the message twice at the top of the order review.
// adds order note at checkout page shipping option
function notice_shipping() {
echo '<p id="allw">For FedEx overnight or express delivery, please call customer service.</p>';
}
add_action( 'woocommerce_review_order_after_shipping', 'notice_shipping' );
Please see attached screenshot.
Can you please help?
Thanks so much.
Cheers
Attachments:
You must be
logged in to view attached files.
Hello,
Try to use this hook instead
function notice_shipping() {
echo '<p id="allw">For FedEx overnight or express delivery, please call customer service.</p>';
}
add_action( 'woocommerce_review_order_before_order_total', 'notice_shipping' );
Regards
Hi
That code doesn’t work well either. It also adds the custom message twice to the top of the order review.
Please help.
In this case, please provide your admin access and FTP credentials so we could look ourselves.
Regards
Hi
I added Login credentials in the private content area.
Thank you
Perfect- Thank you very much!