Welcome to MonJoomla forum board.

Decimal delimiter in Restaurant Menu Creator

Decimal delimiter in Restaurant Menu Creator

Hi,

Here in the Netherlands (and a lot of other countries) we use a comma as a decimal delimiter instead of a period. When using a comma in RMC for the price like € 4,75 RMC will round the price to 4.00 so take care to use the period! Is there with a little code change a way to use (it's so natural :-)) still a comma as decimal delimiter and storing the right price?

frankw
useravatar
Offline
8 Posts
User info in posts
Administrator has disabled public posting

Re: Decimal delimiter in Restaurant Menu Creator

Hello Frank

I didn't know that for the comma, my problem is the database, I use a decimal field and your rounding problem came from it, with a comma the database say it;s not a well formatted number. I just try in Excel and it's the same.

I can do a trick to replace the dot with the comma in the code (only when I display price) but you'll still need to enter the price with the dot.

Give me a day for this one, I will found a trick or had a new options in the admin or change how the database is done.

Thanks for the report

Thanks for your support

If you like my Joomla apps, please help support them with a review here:
http://extensions.joomla.org/

Thank you!

lebill
useravatar
Offline
1704 Posts
User info in posts
Administrator has disabled public posting

Re: Decimal delimiter in Restaurant Menu Creator

Hi Bill,

it's no a big deal, furthermore the 1000'th delimiter here is a period (.), so that may give other problems with goods over 1000 euro's. I'm already used to use the '.' for decimals so at my concerns: let it bleed :-)

Frank

frankw
useravatar
Offline
8 Posts
User info in posts
Administrator has disabled public posting

Re: Decimal delimiter in Restaurant Menu Creator

Well

My girl friend says it's more stylish with the comma, even if it not the right way.

I will add a options in the admin with this feature, How to display the price.

Check tomorrow same hour for the new version

Thanks

Thanks for your support

If you like my Joomla apps, please help support them with a review here:
http://extensions.joomla.org/

Thank you!

lebill
useravatar
Offline
1704 Posts
User info in posts
Administrator has disabled public posting

Re: Decimal delimiter in Restaurant Menu Creator

Hello Frank

New version is ready to download, in the component options, you have now the Price format option

1234.56
1234,56
1,234.56
1 234.56
1 234,56

pretty easy to add more If I miss one.

Thanks for the suggestion

Thanks for your support

If you like my Joomla apps, please help support them with a review here:
http://extensions.joomla.org/

Thank you!

lebill
useravatar
Offline
1704 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
826
Total Polls:
0
Total Posts:
167772688
Total Posts Today:
6
User Info:
 
Total Users:
4371
Newest User:
angelaly
Members Online:
0
Guests Online:
431

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked