as of v184.108.40.206 you can add this to your themes functions.php if you would like to display “free” for example if price would otherwise be displayed as 0.00 (note to self: perhaps make that an option at some point)
/*get rid of any formatting first and cast to integer*/
/*if zero, display some text instead*/
$priceformatted=__('free','wppizza');/*set this to whatever text you need to be displayed*/
PS: not 100% tested, but should work. if you have any issues, let me know.
Viewing 1 post (of 1 total)
The topic ‘use text instead of price when item price equals zero’ is closed to new replies.