by Alvaro Vasconcelos on WordPress.org

Example of URL format with multiple products.
This plugin allows adding multiple simple (not variable or grouped) products to the WooCommerce cart using URL parameters. While WooCommerce natively supports adding a single product to the cart via a URL parameter like add-to-cart=product_id&quantity=quantity, this plugin extends that functionality to support multiple products in a single URL.
?add-to-cart=product_id:quantity,product_id:quantity,product_id:quantity?add-to-cart=product_id,product_id:quantity), the product is added with a quantity of 1.