May 22, 2019 at 10:37 am #288231
I’m using https://css-tricks.com/examples/DynamicOrderForm/ to create a form and wondering how you would use decimal increments instead of a whole value?
Many thanks in advance!May 22, 2019 at 12:48 pm #288235
I’m assuming you are referring to the Quantity
<input id="number" type="number" step="0.1">May 22, 2019 at 1:24 pm #288236
No sorry Paulie I meant the order total. At the moment it’s rounding up to the nearest whole. i.e. 9.95 is 10.May 23, 2019 at 1:44 am #288266
That’s aJS/JQ thing and that’s not my forte.
I’d suggest you look into the order.js file.
There seem to be a lot of
parseIntstatetments which might be the issue.May 27, 2019 at 1:53 pm #288458
Thanks for your help Paulie. Appreciate it. Managed to sort it.
You must be logged in to reply to this topic.