Use URL Query String Parameters to Add Products to the Cart & Apply Coupon Codes in WordPress
Do you need to provide add products and quantities to the shopping cart for site visitors using a url? How about automatically applying a coupon code via url? Our plugin does both, even at the same time.
This is especially valuable for promotions such as email campaigns, PPC promos, etc. or to give a customer a link via live chat to add something to their cart with a discount applied!
Add Product(s) with Quantities to the Shopping Cart with the URL in WooCommerce
NOTE: Your products need SKUs in order for this to work. If your products do not already use SKUs you can add them by going here: Products > Pick a Product > Scroll Down to “Product data” > Click on “Inventory” > Add a SKU > Update the Product
There are two parts to adding products to the cart:
Add the product SKU or SKUs separated by commas, defined by sku=
Add the quantity of the product(s) separated by commas, defined by quant=
To add a quantity 1 of SKU 777-O add ?sku=777-O&quant=1 to any url