Developer forum

Forum » Development » add different products to cart with the same submit?

add different products to cart with the same submit?


Reply
Hi everyone

I want to build a product-item template with a list of related products.
I want to make it posible for the customer to add several products at once with one click.
It will always be the main product (quantity alwasy one), and then the selected related products.
The list will have a text-input field for user to write the quantity for each related product.
My only problem so far is how to make a clever (!) submit.
I can handle a validation loop and build a url-string with selected productIDs and quantities but how about the addCart-submit-function.
Is there a way to add different products at once, or are we talking some AJAX function to submit and loop through and array og products, and IF we are, any ideas how to put it together.
(I'm not that strong on AJAX-stuff yet :-) )

Best Regards, awaiting clever inputs ;-)
Rasmus Thirslund
Front-end developer

Replies

 
Reply
Hi there,

Have you seen this article? http://engage.dynamicweb-cms.com/Show%20Article-361.aspx?PID=2472&ArticleID=85 ?

Imar
 
Reply
Hi
It's good. Might be just what i need - I'll look into it.

Thanxalot
/
Regards
Rasmus

 

You must be logged in to post in the forum