Note: Be aware that not all devices support all the options, so even adding markup hints for it doesn't guarantee the device will do what you hoped.
Two options exist:
1. use "inputmode" instead of "type".
This is simpler, since it can be done for "just this page".
Code:
size="4" inputmode="numeric" class="cart_input_
or instead of "numeric" you could use "decimal" if you support fractional quantities.
2. To use 'type="number"' requires changing the zen_draw_input_field() function, which affects EVERYWHERE any input field is provided.
And since Zen Cart supports fractional quantities, and each product can be set to require varying increments of decimals and/or whole-numbers, setting type="number" would be problematic since it only supports integers and therefore the function would also require calculating the correct intervals to add additional values to the type parameters. Thus I'd suggest not using type="number".
Bookmarks