1 Attachment(s)
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: Attachment 476
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