Black Friday & Cyber Monday SUPER SALE ALL WEEK:
Grab 40% OFF on plugins
Days
Hours
Minutes
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.

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
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x