Hello!
How can I add commas to the price input field while I am typing the price range in the search form? ie.: $10,000,000
Thanks!
Hello!
How can I add commas to the price input field while I am typing the price range in the search form? ie.: $10,000,000
Thanks!
me too wanting to know this. Is this achievable
How can we implement something like this:
http://jsfiddle.net/2LAcj/
Or another method to accomplish the same result?
so I guess its not possible then?
I also found this code here it might give some idea how to implement this:
http://jsfiddle.net/yWTLk/348/
Hello All,
Upload file price format to js files and connect it.
And also add this code:
save and check it.Code:Only registered members can view the code.
Viktor,
Flynax technical department,
Best wishes.
Hi Viktor,
Thank you for getting back to us. I have uploaded the file and called it by adding the code in header.tpl of my template folder:
I also added your code in footer.tpl of my template before the </body><script type="text/javascript" src="{$rlTplBase}js/price_format.js"></script>
I saved and check but nothing happened. Did i do something wrong?<script type="text/javascript">
{literal}
$(document).ready(function(){
$('#field_id').priceFormat({
prefix: '',
thousandsSeparator: ',',
limit: false,
centsLimit: 0,
centsSeparator: ''
});
})
{/literal}
</script>
Because you should set original field id instead of: field_id
Viktor,
Flynax technical department,
Best wishes.
Hi Viktor,
I have changed the following code in footer.tpl, but still no effect.
Also tried this:<script type="text/javascript">
{literal}
$(document).ready(function(){
$('price').priceFormat({
prefix: '',
thousandsSeparator: ',',
limit: false,
centsLimit: 0,
centsSeparator: ''
});
})
{/literal}
</script>
<script type="text/javascript">
{literal}
$(document).ready(function(){
$('#price').priceFormat({
prefix: '',
thousandsSeparator: ',',
limit: false,
centsLimit: 0,
centsSeparator: ''
});
})
{/literal}
</script>
Hello Wei Hong,
Are you sure with id for your price field? Is it 'price'?
try to use:
because your price field doesn't have any ids.Code:Only registered members can view the code.
Viktor,
Flynax technical department,
Best wishes.