I'm using jquery_number.js, do you want to use it? if the answer is yes I'll leave it here attached. I am waiting...
Printable View
I'm using jquery_number.js, do you want to use it? if the answer is yes I'll leave it here attached. I am waiting...
First step:
Second step:PHP Code:
Only registered members can view the code.
Below the line:PHP Code:
Only registered members can view the code.
add the line:PHP Code:
Only registered members can view the code.
PHP Code:
Only registered members can view the code.
Read the post above, in a while I am going to post the Third step (3), please wait ...
Third step:
With the "step_form.tpl" file opened, locate the code:
Add below the line: hashTabs();PHP Code:
Only registered members can view the code.
The end result should be this:PHP Code:
Only registered members can view the code.
Save and close.PHP Code:
Only registered members can view the code.
I'm going to post Fourth step(4) in a moment ...
Fourth step:
On your site open the file:
below the line:PHP Code:
Only registered members can view the code.
edit the line:PHP Code:
Only registered members can view the code.
you just need to replace class="numeric"PHP Code:
Only registered members can view the code.
per ...
id="price"
The end result is:
Save and clear your browser's cache and see if it's working.PHP Code:
Only registered members can view the code.
Reread what I posted above because some things have been updated!
In my script the price setting looks like this:
5.000,00 (five thousand)
5.700,00 (five thousand and seven hundred)
but you can change the configuration through the line:
PHP Code:
Only registered members can view the code.
Documentation, demos and download:
https://www.customd.com/articles/14/...r-format-redux
https://github.com/customd/jquery-number
Thanks
Thanks Ed, did it messup with your saved search criteria? I notice that when I look at my alert page, which show my saved search criteria, the price show two ',,' like 2,,000 or xx,,xxx, xx is just number. Everything else works fine.
Hello,
Thanks Ed very much for your complete description and guidance.
Your method worked, but I have two problems:
1) I do not need a cent separator, with the change this code
toPHP Code:
Only registered members can view the code.
still separates two digits.PHP Code:
Only registered members can view the code.
2) I have some type of price field that works only for the main case where the key is price, for other items that do not work the price1 key, price2, and so on.
I would like the price of 123456789 to be typed as 123,456,789 without cent separator.
Thanks, if these tips are resolved.
Hello Mousa,
For other price fields try to use this code:
Code:Only registered members can view the code.