example: as of v220.127.116.11 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.