Ultimate Discounts Engine for WooCommerce

By teropress

0+ active installationsVersion 1.0.3

Automatic WooCommerce tier, product, cart, BOGO and free shipping campaigns.

Description

Independent extension for WooCommerce. Not affiliated with or endorsed by WooCommerce or Automattic.

Create tier, product, cart discount, BOGO and free shipping campaigns in a shared WordPress admin interface. Target products, categories or SKUs, schedule offers, and preview sample storefront prices live.

The best eligible product or tier price applies automatically. A qualifying cart offer can combine afterward, and shipping campaigns adjust eligible rates. All five included campaign types work without trials, purchase requirements or license gates. Separately installed extensions can register additional working types through extension API 1.0.0. The campaign hub also describes three Pro campaign types available in the separately installed Ultimate Discounts Engine Pro add-on: Buy X Get Y, Bundle discount and Buy X Get Y Bundle. Their editors and discount implementations are not included in this free plugin. BOGO is fully included and requires no license.

Only users with manage_woocommerce can manage campaigns. WooCommerce 9.8 or newer must be active.

Optional MCP support lets compatible AI clients search, preview, create, update, duplicate and delete campaigns. Install the official WordPress MCP Adapter on WordPress 6.9 or newer, then open Discount Engine > MCP to enable access. Draft changes save directly; published campaign changes and all deletions require approval in WordPress. MCP and online OAuth start disabled. See External services below before connecting an assistant. The MCP page provides setup instructions and compatibility limitations.

External services

The discount engine works without an AI account or external AI service. The plugin does not add telemetry. Optional Model Context Protocol (MCP) connections let an assistant you choose read store information and request campaign changes. No assistant is connected automatically. A site administrator must enable access in Discount Engine > MCP, and a compatible client must authenticate as a WordPress user with manage_woocommerce. Selecting an assistant card only shows instructions; it does not authorize a connection.

Data shared and when

After you enable access and connect a client, tool requests and responses pass between your site and that client. Depending on the requested tool, responses can include campaign names, rules, targeting and schedules; product and variation IDs, names, SKUs and prices; taxonomy information; store currency and timezone; aggregate campaign performance; preview results; and the requesting user’s change-request details and approval links. Text you enter into campaigns may also be returned. These tools are not designed to export individual customer or order records. Review campaign text before connecting an external service.

A desktop client can send tool results to its AI provider even when the WordPress connection runs locally through WP-CLI. A local connection does not mean the assistant processes all data locally. Your selected provider handles prompts and tool results under its own terms, account settings and privacy policy. The plugin does not send this information to Teropress.

If you separately enable OAuth sign-in, the plugin retrieves HTTPS client metadata from trusted assistant hosts or exact administrator-approved URLs during authorization, cached for one hour. Built-in URLs include https://claude.ai/oauth/claude-code-client-metadata, https://claude.ai/oauth/mcp-oauth-client-metadata and https://chatgpt.com/oauth/client.json. Additional exact metadata URLs are contacted only for clients you explicitly trust and use. These metadata requests expose ordinary connection information, including the site’s server IP address, to the metadata host; they do not send campaign data. OAuth discovery and authorization also exchange the site/server URL, client identity, redirect URL and authorization parameters with the connecting client. The plugin supports automatic client registration and an administrator consent screen on your own site.

Available assistant guides

The setup page includes the following optional providers. An account or subscription may be required by a provider; availability and connection methods depend on that account. These are independent integrations, with no affiliation or endorsement by the providers. Local Claude Desktop access has been tested; remote Claude access and ChatGPT and Gemini require testing with your account and host. Their presence in the guide does not guarantee compatibility.

  • Claude (Anthropic): https://claude.ai/ — Optional assistant for campaign tools. Terms, Privacy.
  • ChatGPT (OpenAI): https://chatgpt.com/ — Optional assistant for campaign tools. Terms, Privacy.
  • Gemini (Google): https://gemini.google.com/ — Optional assistant for campaign tools when its connection method is compatible. Terms, Privacy.

If you configure another MCP client or gateway, review that service’s terms and privacy policy before authorizing it. Business, API and regional accounts may have different terms from the consumer links above.

Local storage and disconnecting

Campaigns are stored in your WordPress database. MCP change-request history stores the requesting WordPress user ID, operation, before/after campaign plan, revision, timestamps, state and result. Up to 100 requests are retained site-wide; records older than seven days are pruned when a new request is submitted. A successful MCP call also updates that user’s latest tool name and timestamp for this site. This activity record is separate from the seven-day request history. The plugin does not store full assistant conversations in these records. OAuth stores registered app identities and hashed access and refresh tokens in non-autoloaded options. Access tokens expire after one hour; refresh tokens expire after 90 days without use and rotate on every refresh. Authorization codes are stored as hashed transients for ten minutes and work once. Sign-in and disconnect events are recorded in the WooCommerce ude-mcp log. Do not paste credentials into campaign text or client metadata settings.

Choose Disabled and save access settings to stop this plugin’s MCP tools, including pending approvals. To disconnect a web client, use Disconnect under Your connected apps on Discount Engine > MCP and remove it from the assistant. Desktop application passwords are revoked in the WordPress user’s profile. Disabling this plugin’s tools does not revoke credentials or stop access independently granted by another plugin. Deleting the plugin removes its MCP settings, request history and latest-tool activity for the current site; its OAuth grants, registered clients and expiring OAuth records are also removed. Credentials independently granted by other plugins are managed separately. Disconnecting does not delete data already retained by an AI provider.

Installation

  1. Activate WooCommerce on the target WordPress site.
  2. Open Plugins > Add New Plugin > Upload Plugin, select the plugin ZIP, and install it. Alternatively, copy the complete ultimate-discount-engine folder into wp-content/plugins.
  3. No build tools are required to install or use the plugin.
  4. Activate Ultimate Discounts Engine for WooCommerce and open its WordPress admin menu.

FAQ

Does this version change product or cart prices?

Yes. Discounts use the regular price and override eligible product, variation and cart prices. The main WooCommerce price shows the regular amount struck through beside the discounted amount. Stored product prices remain unchanged.

Does it require Composer on the production server?

No. The installation ZIP includes the PHP libraries required for optional online OAuth. Composer is only needed to install dependencies in a development checkout. The main plugin uses a namespace-scoped autoloader fallback.

Where is the readable JavaScript source?

Readable JavaScript/React source and the required build files are included in the source/ directory of this ZIP, matching version 1.0.2. It contains src/, package.json, package-lock.json and a self-contained webpack.config.js. Maintained storefront scripts are included unminified in assets/js/.

To rebuild the admin application, enter source/, use a Node/npm version supported by package.json, run npm ci and npm run build:assets, then copy source/assets/js/ into the installed plugin’s assets/js/ directory. Installation requires no build tools. Development dependencies are not included. Dependency licenses and OAuth attribution are recorded in LICENSE.txt.

What happens when I delete the plugin?

Deleting the plugin removes its campaign settings and legacy settings. Customer accounts and assigned WordPress roles are preserved. On multisite, uninstall cleanup applies to the current site only.

Does the plugin send data to external services?

The discount engine runs locally and does not add telemetry. Optional MCP access shares requested store information with the client you authorize, and that client may send it to its AI provider. Online OAuth can fetch trusted client metadata. Both MCP access and online OAuth start disabled. See External services above for the data, providers, consent, storage and disconnect options.

Does it support every product template and pricing extension?

Cart discounts support simple products and variations. Tier tables appear on classic simple-product templates; variation selectors and block product templates do not display tier tables. Test combinations with other extensions that change cart prices on a staging site.

Changelog

1.0.3

  • Merge released Teropress compatibility, admin and catalog fixes with MCP support.

1.0.2

  • Use Teropress-specific names and preserve campaign settings from earlier prefixes.
  • Enqueue admin route initialization through WordPress and paginate category searches with cycle-safe traversal.
  • Exclude development scripts, dependencies, tests and reports from the installation archive.
  • Include five fully functional free campaign types, including BOGO, without license gates.
  • Preserve campaign settings and checkout usage history while using distinct plugin prefixes.
  • Add a versioned extension API, shared editor and validated campaign management.
  • Show the full Overview on fresh installs with clearly labeled demo figures and live campaign counts.
  • Describe separately installed Pro add-ons with pricing links that open in a new tab.
  • Include readable admin source and reproducible build inputs in the installation archive.

1.0.0

  • Separate tier and product campaign editors, overview cards, live preview.
  • Add validated REST persistence and automatic WooCommerce cart pricing.