That should be pretty easy. You can just go ahead and change the html markup. Then go through the javascript and look for the class name used for the quantity field and change it to the new markup. Think its just done by trying and updating the javascript until it works again :)
Quantity as select
Hi Tea-Guys!
Is it possible to change the quantity input field to a select option (easy change, i'm not that much of a developer)
I believe one has to change both markup and jquery?
best regards Brian
Hi Hundebol
That should be pretty easy. You can just go ahead and change the html markup. Then go through the javascript and look for the class name used for the quantity field and change it to the new markup. Think its just done by trying and updating the javascript until it works again :)
Kind regards
Anders
Hi Anders,
The HTML markup is no problem at all. (i think)
Current - input box:
My take on a select box:
The JavaScript is worse. if someone has done this, and have a snippet to share - then i would appreciate. :)
Current looks like this:
best regards, Hundebol
Just do this quantityInput = product.find('select.quantity'') - try and alert the quantityInput.val() and see it gives you the selected value
Kind regards
Anders
is working on a reply...