| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
I want б╔500 not б╔500.00 | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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.
__________________
X-Cart 4.4.0 PHP 5.2.5 |
|||||||
#2
|
|||||||
|
|||||||
![]() I could be wrong but take a look at smartyx.xx/plugin/modifier.formatprice.php
__________________
x-cart 4.0.5 (live and heavily modded) Server: freebsd |
|||||||
#3
|
|||||||
|
|||||||
![]() correct! - in modifier.formatprice.php change
Quote:
to Quote:
__________________
xcartmods.co.uk |
|||||||
#4
|
|||||||
|
|||||||
![]() Worked perfectly, thanks!
__________________
X-Cart 4.4.0 PHP 5.2.5 |
|||||||
#5
|
|||||||
|
|||||||
![]() 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. |
|||||||
|
|||
X-Cart forums © 2001-2020
|