How do I add a piece of text after price. Instead of a price of "$100" I need "$100 per square foot" for instance. The text would be the same on every item / price displayed. Thanks!
Add text after price
3 posts from 2 voices-
Posted 8 months ago #
-
Anyone have any idea on this? I'm up against a deadline (I know, aren't we all). Thanks so much in advance for any guidance!
Posted 8 months ago # -
Hi playball1,
Sorry for the late response, kindly open wp-content\plugins\woocommerce\woocommerce\woocommerce-core-functions.php and find this line of code:
case 'left' : $return = '<span class="amount">'. $currency_symbol . $price . '</span>'; break; case 'right' : $return = '<span class="amount">'. $price . $currency_symbol . '</span>'; break; case 'left_space' : $return = '<span class="amount">'. $currency_symbol . ' ' . $price . '</span>'; break; case 'right_space' : $return = '<span class="amount">'. $price . ' ' . $currency_symbol . '</span>'; break;And replace it with:
case 'left' : $return = '<span class="amount">'. $currency_symbol . $price . ' per square foot</span>'; break; case 'right' : $return = '<span class="amount">'. $price . $currency_symbol . ' per square foot</span>'; break; case 'left_space' : $return = '<span class="amount">'. $currency_symbol . ' ' . $price . ' per square foot</span>'; break; case 'right_space' : $return = '<span class="amount">'. $price . ' ' . $currency_symbol . ' per square foot</span>'; break;Hope this helps. :)
Regards,
IsmaelPosted 8 months ago #
Reply
You must log in to post.














