In attempting to make it possible to add items to the cart using checkboxes, I have found that if the user presses the submit button with no items selected (no checkboxes checked, the cart comes up and says:
You must specify a name to add a product to your shopping cart.
What would be the most elegant way to handle this situation? Use some js and an alert onclick, and then somehow prevent the cart form coming up?
(Incidentally, this is a huge amount of work I'm doing for such a simple, and I daresay common, bit of online store functionality).