
I'm trying to make a jQuery-ish cart that dynamically drops "products"[services] into the "cart".
I use jQuery to inject divs into the document into my cart area. Each "product" can have several options for which quantities can be specified directly in this "cart".
When saving/parsing the cart to proceed to the next step, I can not figure out a good system of reading back the values for all [services] and the [options] for each service.
What I have so far is something like (in pseudo-code)
foreach [service]
foreach [option]
I can do the dynamic adding and removing of services into the cart but when saving the whole thing I am having difficulty traversing the doc to pull out products selected and the options for each product.
Anyone have suggestions?