How to add all products from collection with one single button?

Dear Shopify community professional crew.

I really need your helps

I want to make a single button on collection page.

and when I click the button, all products from current collection page added to cart directly.

I want to make customer can put all items to cart with one button

(now customer have to ‘add to cart’ button according to the number of products.

I’m using Empire theme (Online store 2.0)

https://yallawaseet.com

https://yallawaseet.com/collections/product-type-clothes

(I want to make a single button, and all items move to cart directly)

I try from below sites. but didn’t working

please help me

thank you in advance

http://www.codeshopify.com/blog_posts/how-to-add-multiple-products-with-an-ajax-cart

What’s the use case for this? Bundles or something else? If it’s for bundles there are better solutions that collections.

There’s also variants (size/color/etc) to think about if the products have those. If they only have single variants, you’d need some way to extract the variant IDs from those products displayed on the page, batch them together and send them as an add to cart requests. It’s a bit complicated but possible.