X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   I want б╔500 not б╔500.00 (https://forum.x-cart.com/showthread.php?t=9666)

rjackson7799 10-01-2004 12:35 PM

I want б╔500 not б╔500.00
 
All of my prices are in Yen so I need to get rid of .00 after the price. For example I want б╔500 not б╔500.00. It's probably pretty easy, thanks in advance.

cotc2001 10-01-2004 02:58 PM

I could be wrong but take a look at smartyx.xx/plugin/modifier.formatprice.php

PhilJ 10-01-2004 03:24 PM

correct! - in modifier.formatprice.php change

Quote:

%.02f

to

Quote:

%d

rjackson7799 10-04-2004 09:37 AM

Thanks
 
Worked perfectly, thanks!

Latat 03-18-2013 08:37 AM

Re: I want б╔500 not б╔500.00
 
Hi, any idea how to do this now in the latest 4.5.4 version?
The referred php file now just contains:

if (!defined('XCART_START')) { header("Location: ../../../"); die("Access denied"); }

function smarty_modifier_formatprice($price, $thousand_delim = NULL, $decimal_delim = NULL, $precision = NULL)
{
return func_format_number($price, $thousand_delim, $decimal_delim, $precision);
}

?>

I really guess it is as simple as earlier, but it is a bit hard to check 5000 files from row to row.


All times are GMT -8. The time now is 05:58 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.