Originally Posted by
pricediscrimination
That's too bad. The .00 is an unnecessary extra on some sites. Would also be nice to know how to change it to USD or AUD, etc. So 56 USD, instead of $56.00.
You can mess with the "format" function in the /includes/classes/currencies.php file. Be careful about rounding it to 0 decimals vs merely displaying 0 decimals.
Or simply edit the product_listing.php module file to hack the ".00" out of the price returned here:
Code:
case 'PRODUCT_LIST_PRICE':
$lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
Of course, if your prices aren't actually all ending in .00 then that'll be harder to do ... but if that's the case then I struggle to understand why you're wanting to remove "only .00" if all prices aren't always .00 in the first place.
Bookmarks