How to loop through a form's checked check box items to add each one to my shopping cart...???
I use a 3rd party shopping cart that's very easy to configure for adding single items to a cart. It's not very well setup, though, for creating 1 form of products with check boxes and adding every checked item to the cart with a single form submission.
I'm trying to do this manually by creating the form myself and calling the add to cart function the shopping cart software uses for each checked item. Does this sound like how I should do it?
If so, how do I do that? lol. When the form is submitted how do I loop through each of the check boxes that are checked? The products with check boxes are listed dynamically on the page. The check box names are all ATCCheck and the checked values of each is its productID.
The form also includes a hidden form field with another product that needs to be included in the loop and added at the same time as everything else.
Any information would be greatly appreciated. Thanks!