bfly03 — 2010-05-14T15:47:07-04:00 — #1
What I am trying to do is add a list box to my site that when the user clicks on a certain item and presses submit the correct code gets sent to my cgi cart.
any ideas on how i can accomplish this?
bfly03 — 2010-05-17T11:59:42-04:00 — #2
nevermind i got it. thank you for the help.
bfly03 — 2010-05-17T09:32:01-04:00 — #3
OK. so what I have is a list box or drop down menu.
This is for a single product with multiple quantities. Once a quantity is selected and they hit submit, I am trying to get that variable to my cart.
I am having trouble figuring out how to add in all of my item numbers and send them to the cart successfully, upon selection.
stomme_poes — 2010-05-17T06:52:36-04:00 — #4
I wish I knew what you meant by "list box". Do you mean a <select> element?
This made the most sense to me, in which case, those belong in forms and the form should submit, as they are want to do.
You can also have JS add "submit buttons" which, when clicked, use AJAX to ask the server to update that little section of the cart, and let users who have no JS just fill everything in at once and hit the real submit at the bottom. Those users would just get a whole page refresh like normal.
Could you be more descriptive?