Go Back   Mosets Community > Archives > Mosets Hot Property 1.0 > Hot Property 1.0 Tips and Tricks

Thread Tools Search this Thread Display Modes
Old 04-30-2011, 09:25 PM
umek umek is offline
Junior Member
Join Date: Feb 2006
Posts: 13
Default Price Format


On my site I'm using EURO as the standard Price, and LM as a secondary price. LM is an EXTRA field.

Can you kindly advise how can I change the format of the LM price from for example LM 120000 to LM 120,000.



Old 05-01-2011, 10:54 PM
gray gray is offline
Join Date: Apr 2006
Posts: 901

You can use number_format function:
string number_format ( float $number , int $decimals = 0 , string $dec_point = '.' , string $thousands_sep = ',' )

It should be applied in _summary.php when the value is printed:
PHP Code:
<?php echo $extrafield_value?></dd>
but a check that this field is the 'price' field is to be added also (as you cannot format all fields).
4HP: Slideshow Module New!
Old 05-02-2011, 04:46 AM
umek umek is offline
Junior Member
Join Date: Feb 2006
Posts: 13

hi gray,

tnx for feedback.

question - how am I going to apply this to a particular extra field only please?


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Price in text format Fabian.Leferink Discussions, Troubleshooting and Problems 11 05-15-2010 05:54 PM

All times are GMT +8. The time now is 08:35 PM.

Copyright © 2005-2010 Mosets Consulting

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.