Black Friday & Cyber Monday SUPER SALE ALL WEEK:
Grab 40% OFF on plugins
00 Days
00 Hours
00 Minutes
00 Seconds

How to Display Custom Message Above The Shipping Options in WooCommerce?

Here is the solution if you want to display the custom message above the shipping options in the cart totals section on the WooCommerce cart page.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function ts_display_above_shipping_options() {
?>
<div class="custom-content-above-shipping">
<p>Planning your order? Take note of the available shipping options:</p>
</div>
<?php
}
add_action('woocommerce_before_shipping_calculator', 'ts_display_above_shipping_options');
function ts_display_above_shipping_options() { ?> <div class="custom-content-above-shipping"> <p>Planning your order? Take note of the available shipping options:</p> </div> <?php } add_action('woocommerce_before_shipping_calculator', 'ts_display_above_shipping_options');
function ts_display_above_shipping_options() {
    ?>
    <div class="custom-content-above-shipping">
        <p>Planning your order? Take note of the available shipping options:</p>
    </div>
    <?php
}
add_action('woocommerce_before_shipping_calculator', 'ts_display_above_shipping_options');

Output

The below output shows that the custom message has been displayed above the shipping options on the WooCommerce cart page.

How to Display Custom Message Above The Shipping Options in WooCommerce? - Tyche Softwares

Additionally, you can also set different messages below each shipping method such as display delivery day range based on shipping country in WooCommerce cart.

Browse more in: Code Snippets, WooCommerce How Tos, WooCommerce Tutorials

Share It:

Subscribe
Notify of


0 Comments
Newest
Oldest
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible.

Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

By using our site, you acknowledge that you have read and understood our Privacy Policy and Terms & Conditions.