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
Developer forum
add different products to cart with the same submit?
Replies
You must be logged in to post in the forum