I would appreciate any indication on how to turn the quantity sub-field read only. The Code snippet would be better.
I would appreciate any indication on how to turn the quantity sub-field read only. The Code snippet would be better.
There is an option to hide the Quantity field if you are using the Single Product field. Can you provide more details as to the use case as far as why you want to make it read only rather than simply hide it?
I need to show the items from the shopping cart and just change the shipping and some other options that will change the total amount. If the user needs to change the quantity he will have to go back to the shopping cart. If i don't show the quantity field the total wont be calculated, in fact it is not even shown in the form.
Would it be too hard to make the field read only?
Gotcha. You would have to use jQuery to do this. You would use jQuery to set the quantity input so that it is disabled. I did a quick search on Google and came up with this:
http://stackoverflow.com/questions/1362153/how-can-i-use-jquery-to-make-an-input-readonly
There may be other examples on Google that show how to use jQuery to do this.