![]() |
Quantity Steps for Input boxes?
Hi all, I have searched the forum for how to customize the quantity input box to only allow a min order amount and implemented that, but has anyone figured out how to do step quantities in the input boxes, like this store does: http://goldsilver.com/buy-online/liberty-silver-round/
Our products are created to order so don't want a mile long quantity select box. Thanks in advance!:-) |
Re: Quantity Steps for Input boxes?
It's not easy to do because of the Javascript associated with the quantity box. You will need to edit the Javascript, and customize it to only allow your specified quantities.
You can change the quantity input type to a text field in the admin panel. |
Re: Quantity Steps for Input boxes?
Thank you totaltec, any clues to where I might find the javascript I need to change?
|
Re: Quantity Steps for Input boxes?
investigate that coin page for behavior using Firebug. check what js is loaded to find the code dealing with quantity box. you can debug js, watch for variable. then do a search inside the js file for that variable. adapt this code to your XC.
|
Re: Quantity Steps for Input boxes?
Look at /common_files/form_validation_js.tpl, you will see the javascript related to maxquantity and minquantity around line 38.
|
Re: Quantity Steps for Input boxes?
The example link wasn't really showing me anything. Are you wanting this?
http://wufoo.com/html5/attributes/04-minmaxstep.html |
Re: Quantity Steps for Input boxes?
Not sure if this is what your after but you can check out the following thread
|
All times are GMT -8. The time now is 05:44 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.