irantk
03-11-2013, 10:33 PM
how to remove decimal in cost on subscription?
example :
120.00 $ => 120 $
please help me
I think you need to edit the file admincp/subscriptions.php, and search for number_format. For example, on like 301 there's this:
$moo['cost']["$currency"] = number_format($value, 2, '.', '');
and the 2 means use 2 decimal places. But I haven't tried it, and number_format appears a number of times in that file and I don't have time to figure out what they all do, so you may have to experiment. Also, if you change one or more of those (change 2 to 0), then you may have to edit the subscriptions and resave them to get the changes to show up, since it looks like the cost string is saved in the database.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.