WooCommerce Add Product(s) to Cart with Quantities and/or Apply Coupon via URL Plugin

JUST ONE ELEMENT OF THE RO WOOCOMMERCE PLUGIN

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:

  1. Add the product SKU or SKUs separated by commas, defined by sku=
  2. 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

Example: https://wp.redolive.co/?sku=777-O&quant=1

To add a quantity 2 of SKU 777-O and a quantity 4 of SKU 999-B add ?sku=777-O,999-B&quant=2,4 to any url

Example: https://wp.redolive.co/?sku=777-O,999-B&quant=2,4

Apply Coupon Codes via URL in WooCommerce

NOTE: Create the coupon code before testing. You can do this like this: Hove over “WooCommerce” > Click “Coupons” > Click “Add coupon” > Set up Your Coupon and Click “Publish”

Add ?coupon=typecouponcodehere to any url.

Example: https://wp.redolive.co/?coupon=save10

Add Products to the Cart and Apply Coupon Codes with the URL in WooCommerce

NOTE: You need to create the coupon code before testing and your products need SKUs in order for this to work.

We are simply combining the two functions above with an ampersand “&”

To add a quantity 2 of SKU 777-O and a quantity 4 of SKU 999-B and coupon code save10 add ?sku=777-O,999-B&quant=2,4&coupon=save10 to any url.

Example: https://wp.redolive.co/?sku=777-O,999-B&quant=2,4&coupon=save10

TRY RO MARKETING FREE

If you're not ready to buy one of our paid plugins try out RO Marketing Free.