To add all products to the cart, you can use the order form. Basically, the ‘updates’ input will be used as a quantity field. Here’s a code that you can use for this.
If you are not on a collection page, do define which collection to use in the order form.
Use the following assign statement, replace ‘your-collection-handle-here’ with your