You can display an important message directly below the cart totals, such as delivery information, payment details, or a promotional offer.
Steps
- Open your theme’s
functions.phpfile. - Add the code below.
- Save the file.
- Open your WooCommerce Cart page.
Done — your custom message will appear below the cart totals.
function add_message_after_cart_totals() {
echo '<p class="custom-cart-message">
🔒 Secure payment available on all orders.
</p>';
}
add_action(
'woocommerce_after_cart_totals',
'add_message_after_cart_totals'
);