To change the cart text in WooCommerce, you can use a free code snippet. This tutorial will guide you through the process of adding details like delivery information below the cart total using the Code Snippets plugin.
Prerequisites
Please make sure you have the following installed and activated:
Adding Details to the WooCommerce Cart
- Navigate to
Snippets
>Add New
and name it “Show Details on Cart”. - Copy the code:
/** * Snippet Name: WooCommerce How To Add Content Under The Proceed To Checkout Button On The Cart Page * Snippet Author: ecommercehints.com */ function ecommercehints_cart_trust_symbols( ) { echo '<div id="cart-trust-symbols"><i class="fas fa-lock"></i> Secure Checkout</div>'; }; add_action( 'woocommerce_after_cart_totals', 'ecommercehints_cart_trust_symbols', 10, 0 );
Source: Code Snippets
- Paste the code into the snippet content area.
- To change the text, edit the string within the
echo
statement. - Copy the
echo
line to add more details as needed.
- Click
Save Changes and Activate
.
Change Cart Text in WooCommerce – Conclusion
To change cart text in WooCommerce is a straightforward process with the Code Snippets plugin. This flexibility allows you to provide essential information to your customers right before they proceed to checkout.