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.
multiple add to cart on single page ?
|
|
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. 
(I think I might just make this an FAQ page.
)
|
|





Joined: 10/08/2007