Skip to content

Auto Apply Coupon for WooCommerce

Project type
WordPress Plugin
Version
1.0.4
Requires WordPress
6.4
Tested WordPress up to
6.8
Required plugins
WooCommerce
Requires PHP
8.1
Licence
GPL-2.0-or-later
Released
November 25, 2025

The problem

Running a weekend sale in WooCommerce usually means either publishing a coupon code and hoping people use it, or scheduling a price change and remembering to undo it. Neither handles a window that starts at 6pm Friday and ends at midnight Sunday without somebody being awake for it.

What this plugin does

Applies a coupon automatically inside a start and end window you set in the admin, with a configurable success message at the cart. Set it and leave.

Installing it

TODO download from the repo, upload, activate, and note where the settings live.

Hooks and filters

Filters for the window logic and the message output.

/**
 * Example filter. Replace with the real ones.
 */
add_filter( 'brs_example_filter', function ( $value ) {
    return $value;
}, 10, 1 );

Requirements and support

This is free software published under the GPL and it comes with no support obligation. Bugs go in GitHub issues. If you need it modified for your site, that is paid work.

Changelog

1.0.4

### Added

  • Added validation to prevent auto-applying invalid coupons that block checkout.
  • Added customer notice when coupon cannot be applied due to product restrictions.
  • Added mixed-cart detection to notify customers when some cart items are excluded from coupon discounts.
  • Improved stability by preventing repeated re-application loops during validation.
  • Added WooCommerce session–based notice tracking to prevent duplicate notices on checkout.
  • Added logic to clear stale notice flags when coupon becomes valid again.
  • Improved handling of excluded-only carts by preventing WooCommerce’s native invalid-coupon error from appearing.

---

1.0.3

### Added

  • Display current server time and timezone on settings screen.
  • Improved formatting (MM/DD/YYYY, no seconds) for readability.

### Changed

  • Settings page now uses a unified notice box to present time information more clearly.

---

1.0.2

### Added

  • Added "Settings" link to the plugin row on the Plugins screen.
  • Integrated Plugin Update Checker (v5.6) to enable GitHub-based automatic updates.
  • Added author URL to the plugin header so "Big Red SEO" links to https://www.bigredseo.com.

### Updated

  • Improved metadata in the main plugin file to reflect correct author URL.
  • Updated Plugin Update Checker integration to use namespaced v5.6 classes.
  • Corrected GitHub repository URL to include .git suffix.
  • Added conditional handling for VCS API initialization to avoid fatal errors.

---

View full changelog on GitHub