+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Price Field - German Standart problem

  1. #1
    Master
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    421

    Price Field - German Standart problem

    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:

    PHP Code:
    Only registered members can view the code
    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.
    Last edited by Steffen Buschkemper; April 20, 2013 at 03:40 PM.

  2. #2
    Steffen, you haven't told us what is the problem.
    You can configure how the price is displayed in Configuration/Listings.

  3. #3
    Master
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    421
    The Problem is follow.
    Our price is separated with a comma. I mean the rest - 12,99 not 12.99.

  4. #4
    Master
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    421
    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.
    Last edited by Steffen Buschkemper; April 18, 2013 at 01:14 AM.

  5. #5
    go into your admin, chose configurations and than listings. you will find there "Millesimal delimiter symbol in prices". place there the symbol you need

  6. #6
    Master
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    421
    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
    Last edited by Steffen Buschkemper; September 24, 2012 at 03:03 PM.

  7. #7
    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.

  8. #8
    Master
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    421
    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) and will publish the result of all the changes here.

    Thank you!

    Best regards
    Steffen

  9. #9
    I have the same problem with the field price
    How can I disable the field in order to receive any value?

  10. #10
    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

    Code:
    Only registered members can view the code.

+ Reply to Thread