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

How to Show WooCommerce Custom Content Between Subtotal & Shipping Options?

Are you looking to insert a new, custom table row between the Subtotal and Shipping Method radio buttons that appear on the cart page? This table might provide valuable information to customers about their shipping details.

add_action( 'woocommerce_cart_totals_before_shipping', 'ts_show_custom_table_row', 20 ); // Show on cart
add_action( 'woocommerce_review_order_before_shipping', 'ts_show_custom_table_row', 20 ); // Show on checkout
function ts_show_custom_table_row() {
        echo ' <tr>
            <th>Custom Label</th>
            <td>Eco-Offset Fee</td>
        </tr>';
    }

Output

The provided code adds a custom table row displaying a “Custom Label” and “Eco-Offset Fee” above the shipping section on the WooCommerce cart pages.

How to Show WooCommerce Custom Content Between Subtotal & Shipping Options?

Alternatively, you can also display custom message for free shipping in WooCommerce based on shipping method options.

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