{"id":197705,"date":"2024-12-27T19:27:27","date_gmt":"2024-12-27T19:27:27","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/add-multiple-products-to-cart-via-url-for-woocommerce\/"},"modified":"2026-03-16T03:24:17","modified_gmt":"2026-03-16T03:24:17","slug":"add-multiple-products-to-cart-via-url-for-woocommerce","status":"publish","type":"plugin","link":"https:\/\/cn.wordpress.org\/plugins\/add-multiple-products-to-cart-via-url-for-woocommerce\/","author":15467573,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1.0","stable_tag":"1.1.0","tested":"6.9.4","requires":"5.0","requires_php":"7.4","requires_plugins":null,"header_name":"Add Multiple Products to Cart via URL for WooCommerce","header_author":"Alvaro Vasconcelos <contact@alvsconcelos.dev>","header_description":"Add multiple products to WooCommerce cart with native add-to-cart parameters.","assets_banners_color":"ffe0f3","last_updated":"2026-03-16 03:24:17","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/donate\/?hosted_button_id=UUF8HHCVQNG6G","header_plugin_uri":"","header_author_uri":"https:\/\/alvsconcelos.dev","rating":5,"author_block_rating":0,"active_installs":200,"downloads":1517,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"alvsconcelos","date":"2024-12-27 19:35:39"},"1.1.0":{"tag":"1.1.0","author":"alvsconcelos","date":"2026-03-16 03:24:17"}},"upgrade_notice":{"1.1.0":"<p>Compatibility update for WordPress 6.9.4 and WooCommerce 10.x. Recommended for all users.<\/p>","1.0":"<p>Initial release of the plugin. Adds support for adding multiple simple and variable products to the WooCommerce cart via URL parameters.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":2},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3213935,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3213935,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500-es_AR.png":{"filename":"banner-1544x500-es_AR.png","revision":3213935,"resolution":"1544x500","location":"assets","locale":"es_AR"},"banner-1544x500-es_CL.png":{"filename":"banner-1544x500-es_CL.png","revision":3213935,"resolution":"1544x500","location":"assets","locale":"es_CL"},"banner-1544x500-es_CO.png":{"filename":"banner-1544x500-es_CO.png","revision":3213935,"resolution":"1544x500","location":"assets","locale":"es_CO"},"banner-1544x500-es_ES.png":{"filename":"banner-1544x500-es_ES.png","revision":3213935,"resolution":"1544x500","location":"assets","locale":"es_ES"},"banner-1544x500-es_UY.png":{"filename":"banner-1544x500-es_UY.png","revision":3213935,"resolution":"1544x500","location":"assets","locale":"es_UY"},"banner-1544x500-pt_BR.png":{"filename":"banner-1544x500-pt_BR.png","revision":3213935,"resolution":"1544x500","location":"assets","locale":"pt_BR"},"banner-1544x500-pt_PT.png":{"filename":"banner-1544x500-pt_PT.png","revision":3213935,"resolution":"1544x500","location":"assets","locale":"pt_PT"},"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3213935,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250-es_AR.png":{"filename":"banner-772x250-es_AR.png","revision":3213935,"resolution":"772x250","location":"assets","locale":"es_AR"},"banner-772x250-es_CL.png":{"filename":"banner-772x250-es_CL.png","revision":3213935,"resolution":"772x250","location":"assets","locale":"es_CL"},"banner-772x250-es_CO.png":{"filename":"banner-772x250-es_CO.png","revision":3213935,"resolution":"772x250","location":"assets","locale":"es_CO"},"banner-772x250-es_ES.png":{"filename":"banner-772x250-es_ES.png","revision":3213935,"resolution":"772x250","location":"assets","locale":"es_ES"},"banner-772x250-es_UY.png":{"filename":"banner-772x250-es_UY.png","revision":3213935,"resolution":"772x250","location":"assets","locale":"es_UY"},"banner-772x250-pt_BR.png":{"filename":"banner-772x250-pt_BR.png","revision":3213935,"resolution":"772x250","location":"assets","locale":"pt_BR"},"banner-772x250-pt_PT.png":{"filename":"banner-772x250-pt_PT.png","revision":3213935,"resolution":"772x250","location":"assets","locale":"pt_PT"},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3213935,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3213935,"resolution":"1","location":"assets","locale":""}},"screenshots":{"1":"Example of URL format with multiple products."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[3175,3047,702,538,286],"plugin_category":[45],"plugin_contributors":[190241],"plugin_business_model":[],"class_list":["post-197705","plugin","type-plugin","status-publish","hentry","plugin_tags-add-to-cart","plugin_tags-cart","plugin_tags-products","plugin_tags-url","plugin_tags-woocommerce","plugin_category-ecommerce","plugin_contributors-alvsconcelos","plugin_committers-alvsconcelos"],"banners":{"banner":"https:\/\/ps.w.org\/add-multiple-products-to-cart-via-url-for-woocommerce\/assets\/banner-772x250.png?rev=3213935","banner_2x":"https:\/\/ps.w.org\/add-multiple-products-to-cart-via-url-for-woocommerce\/assets\/banner-1544x500.png?rev=3213935","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/add-multiple-products-to-cart-via-url-for-woocommerce\/assets\/icon-128x128.png?rev=3213935","icon_2x":"https:\/\/ps.w.org\/add-multiple-products-to-cart-via-url-for-woocommerce\/assets\/icon-256x256.png?rev=3213935","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/add-multiple-products-to-cart-via-url-for-woocommerce\/assets\/screenshot-1.png?rev=3213935","caption":"Example of URL format with multiple products."}],"raw_content":"<!--section=description-->\n<p>This plugin allows adding multiple <strong>simple<\/strong> (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 <code>add-to-cart=product_id&amp;quantity=quantity<\/code>, this plugin extends that functionality to support multiple products in a single URL.<\/p>\n\n<h3>How it works:<\/h3>\n\n<ul>\n<li><strong>URL Format:<\/strong> <code>?add-to-cart=product_id:quantity,product_id:quantity,product_id:quantity<\/code><\/li>\n<li><strong>Single Quantity:<\/strong> If the quantity is not specified (eg. <code>?add-to-cart=product_id,product_id:quantity<\/code>), the product is added with a quantity of 1.<\/li>\n<\/ul>\n\n<h3>Examples:<\/h3>\n\n<ul>\n<li>Adding multiple products with specific quantities:\nexample.com\/cart\/?add-to-cart=12:2,34:1,56:5<\/li>\n<li>Adding multiple products with default quantity:\nexample.com\/cart\/?add-to-cart=12,34:2,56<\/li>\n<\/ul>\n\n<h3>Configuration<\/h3>\n\n<p>The plugin works out of the box with no configuration required. However, you can optionally define the following constants in your <code>wp-config.php<\/code> to adjust the default limits:<\/p>\n\n<p><strong>Maximum products per request (default: 50)<\/strong>\n    define( 'ADD_MULTIPLE_TO_WC_CART_PRODUCT_LIMIT', 50 );\nLimits how many product entries are processed in a single URL. Extra products beyond the limit are silently ignored.<\/p>\n\n<p><strong>Maximum quantity per product (default: 999)<\/strong>\n    define( 'ADD_MULTIPLE_TO_WC_CART_QTY_MAXIMUM', 999 );\nCaps the quantity of each individual product. Any quantity above this value is clamped to the maximum.<\/p>\n\n<p>Example \u2014 allow up to 10 products with a max qty of 100:\n    define( 'ADD_MULTIPLE_TO_WC_CART_PRODUCT_LIMIT', 10 );\n    define( 'ADD_MULTIPLE_TO_WC_CART_QTY_MAXIMUM', 100 );<\/p>\n\n<!--section=installation-->\n<h4>Automatic installation<\/h4>\n\n<ol>\n<li>In your WordPress dashboard, go to <strong>Plugins \u2192 Add New<\/strong>.<\/li>\n<li>Search for <code>Add multiple products to cart via url<\/code>.<\/li>\n<li>Click <strong>Install Now<\/strong> and then <strong>Activate<\/strong>.<\/li>\n<\/ol>\n\n<h4>Manual installation<\/h4>\n\n<ol>\n<li>Download the plugin <code>.zip<\/code> file.<\/li>\n<li>In your WordPress dashboard, go to <strong>Plugins \u2192 Add New \u2192 Upload Plugin<\/strong>.<\/li>\n<li>Select the <code>.zip<\/code> file and click <strong>Install Now<\/strong>, then <strong>Activate<\/strong>.<\/li>\n<\/ol>\n\n<h4>After activation<\/h4>\n\n<p>No configuration needed \u2014 the plugin works immediately after activation. Use the URL format described in the Description section to start adding multiple products to the cart.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id=\"how%20do%20i%20add%20multiple%20products%20to%20the%20cart%3F\"><h3>How do I add multiple products to the cart?<\/h3><\/dt>\n<dd><p>Use the URL format: <code>?add-to-cart=product_id:quantity,product_id:quantity<\/code><\/p>\n\n<p>For example: <code>https:\/\/yourstore.com\/cart\/?add-to-cart=12:2,34:1,56:5<\/code> will add product 12 (qty 2), product 34 (qty 1), and product 56 (qty 5) to the cart in a single request.<\/p><\/dd>\n<dt id=\"what%20happens%20if%20i%20don%27t%20specify%20a%20quantity%3F\"><h3>What happens if I don't specify a quantity?<\/h3><\/dt>\n<dd><p>If no quantity is specified, the product will be added with a quantity of 1. Example: <code>?add-to-cart=12,34:2,56<\/code> adds products 12 and 56 with qty 1, and product 34 with qty 2.<\/p><\/dd>\n<dt id=\"does%20it%20work%20with%20variable%20or%20grouped%20products%3F\"><h3>Does it work with variable or grouped products?<\/h3><\/dt>\n<dd><p>The plugin supports <strong>simple<\/strong> and <strong>variable<\/strong> product types. Grouped products are not supported.<\/p><\/dd>\n<dt id=\"does%20it%20work%20with%20woocommerce%20blocks%3F\"><h3>Does it work with WooCommerce Blocks?<\/h3><\/dt>\n<dd><p>The plugin hooks into WooCommerce's native <code>wp_loaded<\/code> action and works independently of the cart page template (classic or blocks).<\/p><\/dd>\n<dt id=\"is%20woocommerce%20required%3F\"><h3>Is WooCommerce required?<\/h3><\/dt>\n<dd><p>Yes, WooCommerce must be installed and active. The plugin will do nothing if WooCommerce is not detected.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Tested and compatible with WordPress 6.9.4 and WooCommerce 10.x.<\/li>\n<li>Added <code>Requires Plugins: woocommerce<\/code> header (WordPress 6.5+ standard).<\/li>\n<li>Added configurable limit of 50 products per request (overridable via <code>wp-config.php<\/code>).<\/li>\n<li>Added configurable maximum quantity of 999 per product (overridable via <code>wp-config.php<\/code>).<\/li>\n<li>Fixed internal hook re-registration argument count.<\/li>\n<li>Improved readme with expanded Installation, FAQ, and Configuration sections.<\/li>\n<li>Added PHPUnit test suite (available in the GitHub repository).<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Add multiple products to WooCommerce cart with native add-to-cart parameters.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/197705","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=197705"}],"author":[{"embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/alvsconcelos"}],"wp:attachment":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=197705"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=197705"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=197705"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=197705"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=197705"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=197705"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}