Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

I want б╔500 not б╔500.00

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-01-2004, 12:35 PM
 
rjackson7799 rjackson7799 is offline
 

Member
  
Join Date: Jan 2004
Location: Los Angeles
Posts: 24
 

Default 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.
__________________
X-Cart 4.4.0
PHP 5.2.5
Reply With Quote
  #2  
Old 10-01-2004, 02:58 PM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default

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
Reply With Quote
  #3  
Old 10-01-2004, 03:24 PM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default

correct! - in modifier.formatprice.php change

Quote:
%.02f

to

Quote:
%d
__________________
xcartmods.co.uk
Reply With Quote
  #4  
Old 10-04-2004, 09:37 AM
 
rjackson7799 rjackson7799 is offline
 

Member
  
Join Date: Jan 2004
Location: Los Angeles
Posts: 24
 

Default Thanks

Worked perfectly, thanks!
__________________
X-Cart 4.4.0
PHP 5.2.5
Reply With Quote
  #5  
Old 03-18-2013, 08:37 AM
 
Latat Latat is offline
 

Member
  
Join Date: Aug 2005
Location: Hungary
Posts: 25
 

Default 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.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:28 AM.

   

 
X-Cart forums © 2001-2020