Start a free 14-day trial by December 1 on a wide range of WooCommerce Marketplace extensions and themes. Explore products

Subscription – Add / Remove Coupon Actions

Use AutomateWoo’s Add Coupon and Remove Coupon actions to change the discounts on future renewal orders for subscriptions created with WooCommerce Subscriptions.

Add a coupon

↑ Back to top

Before you start, activate AutomateWoo and WooCommerce Subscriptions and enable coupons in WooCommerce > Settings > General. For automatic renewals, confirm the gateway supports Recurring Total Changes. Create a recurring coupon in Marketing > Coupons.

  1. Go to AutomateWoo > Workflows and select Add Workflow. Set the workflow to Disabled while you configure it.
  2. Choose a subscription trigger and use the available product filters or rules to target the subscriptions you want to change.
  3. Select Add Action, then choose Add Coupon under Subscription.
  4. Select your coupon in the Coupon field. For a change at the trigger time, set Timing to Run immediately, then save the workflow.

The action applies the coupon’s saved discount and usage restrictions. WooCommerce applies a coupon code once per subscription while that code remains on it. It stays on the subscription until you remove it or it reaches a configured payment limit.

Check coupon validation

↑ Back to top

If the coupon was already applied or fails a restriction, AutomateWoo records an error in AutomateWoo > Logs. Open the entry and look under Log notes for the reason. For example, the coupon may be limited to a product the subscription doesn’t contain. Review the coupon and the workflow’s targeting before it runs again. See Workflow Logs for more details.

Remove a coupon

↑ Back to top

In the workflow, select Add Action and choose Remove Coupon under Subscription. Select the code already applied to the subscription in the Coupon field, then save the workflow. Use separate workflows if the coupon should be added and removed at different points in the subscription’s lifecycle.

Verify coupon changes

↑ Back to top

On a test store where workflows can run, check the coupon line items and renewal total after the action runs. Open Order notes on the subscription for the workflow name, workflow ID, and coupon code. Once the result is correct, enable the workflow on your live store with the intended product filters and rules.

Choose a renewal trigger

↑ Back to top

Schedule the action before WooCommerce creates the renewal order you want to change. If the order already exists, check its coupon and total separately.

  • Subscription Created runs after signup, so a coupon applied by this trigger can affect the first renewal.
  • Subscription Renewal Payment Complete runs after a successful renewal payment, so a coupon applied by this trigger can affect the following renewal.
  • Subscription Before Renewal runs a set number of days before the scheduled payment. Use it when you need the change to happen before the next renewal.

Check the amount shown to the subscriber in My Account > View Subscription.

Example uses

↑ Back to top
  • Add a loyalty discount when a subscriber reaches a milestone.
  • Remove an introductory discount after a set number of successful renewals.
  • Apply a seasonal discount to a group of subscriptions that match your workflow rules.

Questions and support

↑ Back to top

Something missing from this documentation? Still have questions and need assistance?

  • If you have a question about a specific extension or theme you’d like to purchase, contact us to get answers.
  • If you already purchased this product and need some assistance, get in touch with a Happiness Engineer via our support page and select this product’s name from the Product dropdown.

Related Products

WooCommerce Subscriptions is a WooCommerce extension that lets customers subscribe to your products or...

Offer add-ons like gift wrapping, special messages or other special options for your products.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.