PDA

View Full Version : Price Field - German Standart problem



Steffen Buschkemper
September 24, 2012, 02:05 PM
Hi,

i have a problem with German Price Fields.
Our prices are declared as follows: 25,99 € and not 25.99 €!
I have checked the rlValid.class.php and rlSmarty.class.php.

In this function str2money i have change follow:



Code removed


Now i can see the Price in german Standart 25,99 €.
But the User can not input comma as decimal point in the Price Field.
It can only input price with dot as decimal point in the price field.
What needs to be changed so that the price is in input and also displayed with a comma as decimal point?

Best regards
Steffen

UPDATE!

Solution out now!

Every who wants to change the listing prices to european standard (12,34 instead 12.34), please check out this thread here -> Link (http://www.flynax.com/forum/showthread.php?1195-Instructions-for-change-listing-price-in-European-currency-format-%28decimal-comma%29&p=5070&viewfull=1#post5070).

Riba
September 24, 2012, 02:11 PM
Steffen, you haven't told us what is the problem.
You can configure how the price is displayed in Configuration/Listings.

Steffen Buschkemper
September 24, 2012, 02:20 PM
The Problem is follow.
Our price is separated with a comma. I mean the rest - 12,99 not 12.99.

Steffen Buschkemper
September 24, 2012, 02:23 PM
In the price field i can not input 12,99 only 12.99 - thats a problem for germany.
Legal requirements in germany dictate the price standard.

Petrache Nicolae
September 24, 2012, 02:30 PM
go into your admin, chose configurations and than listings. you will find there "Millesimal delimiter symbol in prices". place there the symbol you need

Steffen Buschkemper
September 24, 2012, 02:39 PM
Hi Petrache Nicolae,

this is not the solution. This is for the Millesimal - 1.000,00 €.
I mean the rest eg: 12,99 € or for better unterstand 0,99 €

Mike
September 25, 2012, 04:28 AM
Hello Steffen,

There is an extension to prevent comma and any letters to be entered in the number fields.
It's jquery.numeric, you have to try to hack it to allow comma or configure somehow to allow. Maybe last version allows comma to be entered, but i don't know.

you have to look into libs/jquery/numeric.js

or disable it for price field to allow input any value

Let me know if you have questions, i will try to help.

Steffen Buschkemper
September 25, 2012, 08:47 PM
Hello Mike,

Thanks for the note with libs/jquery/numeric.js.
I have modified numeric.js with comma as decimal.
But i think its not all. I can input price with comma but i must change more as this file.

I'll try a different jquery (Link (http://www.decorplanit.com/plugin/)) and will publish the result of all the changes here.

Thank you!

Best regards
Steffen

Aroldo jose
February 23, 2013, 12:49 AM
I have the same problem with the field price
How can I disable the field in order to receive any value?

Mike
February 25, 2013, 11:55 AM
You can remove applying .numeric attributes to the fields

for add listing page you have to edit templates/your_template/tpl/controllers/add_listing.tpl

find code and remove



{literal}
$(document).ready(function(){
$("input.numeric").numeric();
});
{/literal}

Steffen Buschkemper
April 18, 2013, 12:52 AM
Hi @ All,

Every who wants to change the listing prices to european standard (12,34 instead 12.34), please check out this thread here -> Link (http://www.flynax.com/forum/showthread.php?1195-Instructions-for-change-listing-price-in-European-currency-format-%28decimal-comma%29&p=5070&viewfull=1#post5070).

Best regards
Steffen