I would like to thank James. I didn’t know if there where any acf nuances to worry about when changing the above code, besides it having been quite awhile since I’ve done any coding (many years). Thanks to him the changes went off without a hitch, slick enter 0 or nothing in the form field on the backend and ‘Call for Service’ displays. Enter any number greater than 0 and it displays the $ + the number (EX:$125).
Thank you – I’m unfamiliar with the workings of the acf. Once I’m back on that project I’m waiting for cpanel access (the particular file is locked down, I need to change some permissions temporarily), once I look at the changes – I’ll come back and give you your props.
I’m not familiar with ACF but, how would the above output ‘Call for Price’ I don’t see a check for anything in the if statement or an alternative (elseif, else) if there isn’t a numeric value entered. Is this a built in function?
Sorry if this is simple, I might be dense, it is early here.
But wouldn’t you need to do something like:
$price = $row['service_price'];
if( $price > 0 ){
$price = '$' . $price;
}
else {
$price = 'Call for Price';
}
Accidently Struck wrong key – don’t know how to clear this