Want to display extra information like tax details, shipping info, EMI availability, or payment offers directly below the product price? You can easily do this using a WooCommerce action hook.
Steps
-
Open your theme’s
functions.phpfile. -
Add the code below.
-
Save the file.
-
Open any WooCommerce product page.
Done — your custom text will appear immediately below the product price.
function add_text_after_product_price() {
echo '<p class="custom-price-message">
Free shipping & easy returns available.
</p>';
}
add_action(
'woocommerce_single_product_summary',
'add_text_after_product_price',
11
);