News:

Support the VirtueMart project and become a member

Main Menu

for those who wants to remove trailing zeros from prices

Started by rdcustom, May 23, 2024, 12:23:58 PM

Previous topic - Next topic

rdcustom

did a trick today, I post here for future reference in case of updates:

currencydisplay.php

on line 301

add:

$res = preg_replace('/\,00/', '', $res);
$res = rtrim($res, ",");

this will show prices without useless ",00"

125,00 will result in "125"