+ Reply to Thread
Results 1 to 4 of 4

Thread: Instructions for change listing price in European currency format (decimal = comma)

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

    Post Instructions for change listing price in European currency format (decimal = comma)

    Hi @ all who need this feature,

    Flynax currently only supports the american and english currency format for listings (decimal = dot).
    The topic is not new and has been discussed by me in the forum before.
    Because of time constraints the topic has not yet been solved.
    That's why I published the solution today for some europeans.

    __________________________________________________ __________________________________________________ __________________

    Please note that existing listing prices in database with point as decimal instead of comma must be manually changed with follow SQL query!

    Login into the Admin Panel and go to Common -> Database
    Paste the follow SQL query

    Code:
    Only registered members can view the code.
    and press the button "Go". Now the decimals of listing prices will be changed with a comma as decimal in database.
    __________________________________________________ __________________________________________________ ___________________

    NOTICE: Please back up all files before modify!

    OK let us start now.

    Part 1. Opens the 2 files rlSmarty.class.php and rlValid.class.php (includes -> classes -> ...)

    Searches for the function str2money

    PHP Code:
    Only registered members can view the code
    Change the code as follows in both files

    PHP Code:
    Only registered members can view the code
    Save and Close!


    Part 2. Open the file includes -> classes -> rlListings.class.php

    Next find the following code @ line ~ 301 and @ line ~ 606

    PHP Code:
    Only registered members can view the code
    and change the codes as follow

    PHP Code:
    Only registered members can view the code
    Save and Close!


    Part 3. Open the file includes -> classes -> admin -> rlListings.class.php

    Next find the following code @ line ~ 266 and @ line ~ 585

    PHP Code:
    Only registered members can view the code
    and change the codes as follow

    PHP Code:
    Only registered members can view the code
    Save and Close!


    Part 4. Open templates->"your template"->tpl->controllers-> add_listing.tpl

    Find the following script nearly at the end of the file

    PHP Code:
    Only registered members can view the code
    and change the code as follow

    PHP Code:
    Only registered members can view the code
    Save and Close!


    Part 5. Open templates->"your template"->tpl->controllers-> edit_listing.tpl

    Find the following script nearly at the end of the file

    PHP Code:
    Only registered members can view the code
    and change the code as follow

    PHP Code:
    Only registered members can view the code
    Save and Close!


    Part 6. Open admin->tpl-> footer.tpl

    Find the code @ line ~ 23

    PHP Code:
    Only registered members can view the code
    and below (after the above code) add the following code in a new line.

    PHP Code:
    Only registered members can view the code
    Save and Close!

    Part 7. Download and extract the numeric.zip.
    Download: numeric.zip

    Replace the new numeric.js with existing - via ftp @ folder libs -> jquery -> numeric.js

    Ok thats all

    Now the Currency Format is for examble 12,34 or 12,00 and
    your customers can input prices with comma as decimal. :p


    Best regards
    Steffen
    Last edited by Steffen Buschkemper; April 19, 2013 at 11:36 AM.

  2. #2
    Master
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    421
    The only thing that has not been changed is the prices for the plans.
    I work on it and will soon publish it here.

    Best regards
    Steffen

  3. #3
    Hello! Thanks for this tutorial! Everything works great!
    Last edited by Giuseppe Mollo; April 19, 2016 at 02:51 PM. Reason: i miss something in the tutorial! Thanks

  4. #4
    Guten Morgen Steffen,

    have you changed the price plans yet ?

    w

+ Reply to Thread