troubleshooting Question

How to loop through a form's checked check box items to add each one to my shopping cart...???

Avatar of Andrew Angell
Andrew AngellFlag for United States of America asked on
ASPE-Commerce
4 Comments1 Solution342 ViewsLast Modified:
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!
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros