A WordPress plugin to automatically apply a WooCommerce coupon code to the cart with a URL.

Installs: 16 420

Dependents: 0

Suggesters: 0

Security: 0

Stars: 124

Watchers: 18

Forks: 27

Open Issues: 0


v2.2.0 2016-12-05 21:46 UTC

This package is not auto-updated.

Last update: 2020-07-10 19:21:17 UTC


Automatically apply WooCommerce coupon codes to the cart via a URL.

Contributors: Luke McDonald, Brady Vercher
Requires: 4.7
Tested up to: 4.9
License: GPL-2.0+


First, you will need to set up a coupon in WooCommerce. The coupon can then be applied by adding a coupon_code query argument to the cart URL.


If the cart is empty, the coupon will still be applied and visible once the user adds a product.

Probably more useful than just applying a coupon code to the URL, is appending the coupon code argument to the end of a product's "Add to Cart" URL.


In the above example, a product with the id of 2804 will be added to the cart with the highfive coupon applied.


  1. Download the latest release from GitHub.
  2. Go to the Plugins → Add New screen in your WordPress admin panel and click the Upload button at the top next to the "Add Plugins" title.
  3. Upload the zipped archive.
  4. Click the Activate Plugin link after installation completes.