Store is using the EmporiumPlus Dimension Pricing module which strictly requires the use of decimals (not fractions) in the input field. On occasion, there have been customers that miss the message to use decimals. I'm thinking there might be a way to check what is (or isn't) entered in the field and popup an error message, but then, I'm not sure how to do it.
Announcement
Collapse
No announcement yet.
Require decimal reject fraction
Collapse
X
-
Require decimal reject fraction
Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Tags: None
-
Simple. Use HTML5 input type:
<input type="number" name="number" step="any" />
Bruce Golub
Phosphor Media - "Your Success is our Business"
Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
phosphormedia.com
-
Originally posted by Bruce - PhosphorMedia View PostSimple. Use HTML5 input type:
<input type="number" name="number" step="any" />Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
-
well you know how to change that :)
The only other way is to grab some JS to do it.
The HTML5 methods are supported by IE10 circa browsers and up. I do not believe declared Doctype effects this (at least for IE). Give it a try since its simple.
Bruce Golub
Phosphor Media - "Your Success is our Business"
Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
phosphormedia.com
Comment
-
Yup, I've already mentioned it to the store ownerLeslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
-
Originally posted by Bruce - PhosphorMedia View PostSimple. Use HTML5 input type:
<input type="number" name="number" step="any" />Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
-
This has actually been fun to play with. This one increments in whole numbers and doesn't go below 0
Code:<input name="number" type="number" id="Qtybox" step="1" min="0" placeholder="1" >
Code:<input name="number" type="number" id="Qtybox" step="0.1" min="0" placeholder="1" >
Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
-
Two steps forward, one step back. It doesn't seem to be recognizing the amount in the field - as in not adding to the cart.
Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
-
Woohoo. It needs the name="Quantity"
Code:<input name="Quantity" type="number" id="Qtybox" step="1" min="0" placeholder="1" value="1">
Code:input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { opacity: 1; }
Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
-
Originally posted by lesliekirk View PostTwo steps forward, one step back. It doesn't seem to be recognizing the amount in the field - as in not adding to the cart.
BTW: we do this without a module by simply translating the decimal value on Submit (using jQuery). I'd have to remember where the hell we did that though to get a code sample, but its basically "onSubmit, get value of x, divide/multiple/etc, assigntoCGI value...continue submitting.Bruce Golub
Phosphor Media - "Your Success is our Business"
Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
phosphormedia.com
Comment
Comment