In this tutorial, you will learn how to add text to the price of your WooCommerce products. This simple but powerful customization will give your store a unique touch and make your prices stand out from the crowd. You'll see how easy it is to add text to your product prices without using a plugin , and how this simple tweak can make a big difference in the overall look and feel of your store. Whether you're a beginner or an experienced WooCommerce user, this video will show you how to take your store to the next level with custom text in prices. So sit back, relax, and let's get started!
Code:
// add text to price
function Miguel_Add_Text_To_Product( $price ) {
if ($price != ''){
$price .= ' includes VAT';
return $price;
}
}
add_filter( 'woocommerce_get_price_html', 'Miguel_Add_Text_To_Product' );
add_filter( 'woocommerce_cart_item_price', 'Miguel_Add_Text_To_Product' );
----------------------------------------------------------
My Affiliate Links:
----------------------------------------------------------
The Best Hosting Company Around , Save over 75% in the first year :
🔘 SiteGround : tinyurl.com/2u...
Elementor Pro:
🔘 be.elementor.c...
Elementor Hosting:
Save up to 75% with this link:
🔘 be.elementor.c...
Негізгі бет WooCommerce Pro Tip: Adding Text to Product Prices
No video
Пікірлер: 21