multiple add to cart on single page ?

Posts: 167
Joined: 10/08/2007
Bug FinderGetting busy with the Ubercode.PayPal Hero

Has anyone found a way to create a page with multiple products, each with a quantity field. And then a single button which will add the selected quantities to the cart, spanning all of the products. We are thinking about a special site for wholesalers who need to do this sort of thing. Thanks for any suggestions.

--

Christopher Schaub
LuteGrass, LLC
http://www.lutegrass.com

Posts: 5245
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

No one's done it as far as I know, but my advice is the same every time the question comes up - pass an array of node IDs or something to a function that can generate a form table w/ product names, attribute selections, and quantity boxes. Parse the form submission results and use uc_cart_add_item() to add the items to the customers shopping cart then kick the user off to /cart.

If someone's looking to get into module development, this would be a great API module to get started on. Eye-wink

(I think I might just make this an FAQ page. Laughing out loud)

Posts: 167
Joined: 10/08/2007
Bug FinderGetting busy with the Ubercode.PayPal Hero

Thanks. Hmmm, let me see if I have time to write it. I'm really swamped.

--

Christopher Schaub
LuteGrass, LLC
http://www.lutegrass.com