WooCommerce Checkout Redirect After Adding Product To Cart On Archive...
Read NowWooCommerce Add Content Under Product Prices On Archive Page
Pre-Requisites
There are no pre-requisites for this code snippet to work. Keep in mind this solution consists of two code snippets, one to display the content and one to style it.
How To Implement This Solution?
Add these two code snippets as separate entries in either your active child theme’s functions.php file or the Code Snippets plugin.
About The Snippet
This quick guide will walk you through adding custom content beneath the product price on the WooCommerce Product Archive template. Whether you want to display a shipping notice, promotion, or something like “Price Match Promise,” this code snippet will help you show the custom text on all products on the archive page. If you want to target specific products, you can wrap the echo output in an if
statement to match the product ID. Enjoy!
/** * Snippet Name: Add custom content under price on product archive loop items * Snippet Author: Nevercrox Solutions */ function nevercrox_woocommerce_after_shop_loop_item() { echo 'Price Match Promise'; } // add the action add_action( 'woocommerce_after_shop_loop_item', 'nevercrox_woocommerce_after_shop_loop_item', 1, 0 );
Just Added Blogs
WooCommerce Change Checkout Field Placeholders
WooCommerce Change Checkout Field Placeholders Pre-Requisites There are no pre-requisites...
Read Now