Topic: how to remove the ",00" from price extra field?
hi,
Any idea on how to remove the ",00" from price extra field?
For example I want 12 630,00 $
to look: 12 630 $
can u help
Thanks
Here you can get free support from the community around DeltaScripts. For Commercial support, please submit a trouble ticket.
You are not logged in. Please login or register.
DeltaScripts → PHP Classifieds 7.0 - 7.5 → how to remove the ",00" from price extra field?
hi,
Any idea on how to remove the ",00" from price extra field?
For example I want 12 630,00 $
to look: 12 630 $
can u help
Thanks
Admin > Payment > Price format
AndyC
Admin > Payment > Price format
AndyC
Thank you brother....
Can you tell me what to put in price format in order to remove the "00"
For example, if the user type 500.00 I want to show 500
Thanks
I use this
::,
which gives no decimal places and a comma as the thousands separator, i.e 1000.00 becomes 1,000
AndyC
Thanks,
and if I want 1000.00 to become this 1 000 (space instead of coma) ?
Sorry but it doesnt work for me.
So what I want is :
- user is not allowed to enter decimal only integer
What to put in the field "Default price (used in input fields)" ?
By default it's /^[0-9]*[.]?[0-9]{0,2}$/
I changed it to /^\d+$ /
But doesn't work
Any idea?
Thanks,
and if I want 1000.00 to become this 1 000 (space instead of coma) ?
If I remember correctly you need to replace the comma with a space in the Price format box, so
::,
becomes
::
AndyC
Sorry but it doesnt work for me.
So what I want is :
- user is not allowed to enter decimal only integerWhat to put in the field "Default price (used in input fields)" ?
By default it's /^[0-9]*[.]?[0-9]{0,2}$/
I changed it to /^\d+$ /
But doesn't workAny idea?
Does /^\d*$ work?
I couldn't figure out how to change it when I set up my site, that's why is used the Price format box to get rid of the decimal places. If figures are entered after the decimal place the price just gets rounded up. Doing it this way means that the user doesn't get an error message if they do put in decimals.
AndyC
No, /^\d+$ / didn't work when i put it in "Default price (used in input fields)"
But I already also put ::, in the price format as well.
so to summarize, what I have now :
price format : ::,
Default price : /^\d+$ /
Result : I can't enter anything, it keeps telling me what I enter is incorrect.
You need advice from someone familiar with regular expressions - sadly I'm not...
What happens if you return the "Default price (used in input fields)" to its default and use :: (colon colon space) in the Price format box?
AndyC
It does anything good
If I have these :
Default price (used in input fields) = /^[0-9]*[.]?[0-9]{0,2}$/
Price Format = ::
I still can enter 500.00 and I don't want. I want user to be able to enter only integer like 500
It does anything good
If I have these :Default price (used in input fields) = /^[0-9]*[.]?[0-9]{0,2}$/
Price Format = ::I still can enter 500.00 and I don't want. I want user to be able to enter only integer like 500
What about
/^[0-9]*$/
AndyC
Sorry for the late reply but /^[0-9]*$/ seems working. It does not allow user to use decimal only integer, that's what I wanted.
Thanks
Sorry for the late reply but /^[0-9]*$/ seems working. It does not allow user to use decimal only integer, that's what I wanted.
Thanks
No problem, glad we got there in the end ![]()
AndyC
I put this :
Price format = ::,
Default price (used in input fields) = /^[0-9]*[.]?[0-9]{0,2}$/
So when the user enters 500.00 it will tell him that decimal is not allowed.
I put this :
Price format = ::,
Default price (used in input fields) = /^[0-9]*[.]?[0-9]{0,2}$/
So when the user enters 500.00 it will tell him that decimal is not allowed.
zhijing is a spammer - ignore him.
AndyC
The BIG QUESTION is How Can I set for put the $ sign on the price?
DeltaScripts → PHP Classifieds 7.0 - 7.5 → how to remove the ",00" from price extra field?
Powered by PunBB, supported by Informer Technologies, Inc.
Generated in 0.049 seconds (91% PHP - 9% DB) with 9 queries