// get the ad price and position the currency symbol
if ( !function_exists('cp_get_price') ) {
function cp_get_price($postid, $meta_field) {
global $cp_options;
if ( get_post_meta($postid, $meta_field, true) ) {
$price_out = get_post_meta($postid, $meta_field, true);
$price_out = cp_price_format($price_out);
$price_out = cp_pos_currency($price_out, 'ad');
} else {
if ( $cp_options->force_zeroprice )
$price_out = cp_pos_currency(0, 'ad');
else
$price_out = 'Call for a quotation';
}
echo $price_out;
}
}
There are currently 1 users browsing this thread. (0 members and 1 guests)