VibeFox Coupons — Help
Requirements
WordPress: 6.0 or later.
WooCommerce: 6.0 or later, installed and active.
PHP: 8.0 or later.
Scheduled tasks: abandoned cart coupons, campaign statuses, alerts and the digest run with WP-Cron. With an external cron, call wp-cron.php regularly.
VibeFox license key: bought on vibefox.net. One key works on one domain.
Installation
1. In WordPress go to Plugins > Add New > Upload Plugin, choose the plugin ZIP file and click Install Now. You can also upload the vfw_coupons folder to /wp-content/plugins/ by FTP.
2. Click Activate. WordPress opens VF Coupons > Settings > License. Paste your VibeFox license key into License key and click Activate. Until the key is active the plugin stays switched off and its menu shows only Settings (see License key).
3. Once the key is active, the database tables are created; they are upgraded automatically on updates.
4. The menu VF Coupons appears in the WordPress admin with the pages Dashboard, All coupons, Coupon categories, Campaigns, Bulk Generate, Import / Export and Settings.
5. Open VF Coupons > Settings and review the sections, for example Automatic coupons, Abandoned carts and Admin alerts. Click Save Changes.
6. Edit any coupon in Marketing > Coupons or VF Coupons > All coupons. The coupon data box has the new tabs Type rules, Conditions & stacking, Schedule, Display & sharing and Statistics.
Configuration
All general settings are on one page: VF Coupons > Settings. The sections are listed on the left. Click Save Changes to save.
General
Front-end features: coupon lists, promo banners, auto-apply, coupon links and BOGO or giveaway items. Switch it off to pause them without deactivating the plugin. Coupon rules such as schedules and conditions keep being checked. Default: on.
Maximum coupons per order: how many coupons can be used in one order. 0 means no limit. Default: 0.
Code prefix: the default prefix of generated codes (bulk generator, abandoned cart coupons), for example SALE gives SALE-7KQ2M9XA. Default: VFW.
Code length: the number of random characters after the prefix. Default: 8.
Code characters: look-alike characters (0/O, 1/I) are never used.
Coupon display
Only coupons with Show to customers (coupon > Display & sharing) and coupons restricted to the customer's own email are listed. Other codes are never shown.
On the cart page: "Available coupons" with an Apply button, on the classic cart and the Cart block. Only coupons valid for the current cart are listed. Default: on.
On the checkout page: the same list on the classic checkout and the Checkout block. Default: on.
"My coupons" in My Account: adds the page My coupons to My Account. Default: on.
Coupon style: how the coupons are shown.
Automatic coupons
Personal single-use coupons, restricted to the customer's email, are created and emailed automatically. There are three kinds. Each has its own switch and, when it is on, the fields Discount type (Percentage discount or Fixed cart discount), Amount (default: 10), Valid for (days) (0 means no expiry; default: 30) and Code prefix.
Welcome coupon: for every new customer account, registered in My Account or at checkout. Default prefix: WELCOME. Default: off.
Loyalty coupon: after every N-th paid order of a registered customer. Every N-th order sets N (default: 5). Default prefix: LOYAL. Default: off.
Thank-you coupon: when a paid order contains one of the selected products. Trigger products takes product or variation IDs, comma-separated. Default prefix: THANKS. Default: off.
Abandoned carts
Recovery coupons: carts of logged-in customers, and of guests who entered their email at checkout, that were not ordered get a personal coupon by email after the delay. No email is sent if the customer ordered in the meantime. Default: off.
Send after (hours): hours since the last change of the cart. Default: 24.
Discount type: Percentage discount or Fixed cart discount.
Discount amount: default: 10.
Coupon valid for (hours): default: 72.
Admin alerts
Alert e-mail: where alerts and the digest are sent. Empty means the site administrator email.
Usage alert threshold: an alert is sent once when a coupon has been used this many times. 0 turns it off. Default: 100. Suspicious use (5 or more orders from one IP in 24 hours, one email on several accounts) and coupons expiring within 3 days are always reported.
Cron
E-mail digest: a summary of coupon use, discounts, revenue and top coupons. Default: off.
Digest frequency: Daily or Weekly (default).
Scheduled tasks: a table of the tasks (Campaign updates and cart recovery, Coupon alerts and scheduled digest) with their schedule, last run and next scheduled run.
Logging
Enable logging: writes diagnostic messages to a protected log file. Default: off.
Log level: the minimum severity to record.
Log: the latest log entries.
Uninstall & Clear
Delete data on uninstall: when the plugin is deleted (not just deactivated), removes its tables (campaigns, analytics), settings, coupon categories and its meta data. WooCommerce coupons themselves are kept. Default: off.
Data Cleanup: buttons with the current counts:
Status
System: the current and minimum versions of PHP, WordPress and WooCommerce. Multilingual support: the detected multilingual plugin (WPML, Polylang or qTranslate-XT) and the site languages.
Coupon settings
Open a coupon in Marketing > Coupons. All standard WooCommerce fields, restrictions and usage limits keep working. On the General tab, Discount type has four new types: BOGO (Buy X Get Y), Giveaway (free product), Tiered (by quantity) and Tiered (by cart subtotal). The coupon list has a VibeFox column with the plugin's settings of each coupon. Coupons can be grouped in VF Coupons > Coupon categories.
Type rules
The rules of the chosen new type.
BOGO (Buy X Get Y): Buy is Specific product(s), Product(s) from categories or Any product, with Buy quantity (the total quantity of matching products, not counting the free item). Get is Specific product, Cheapest product from categories or Another unit of the cheapest product in the cart, with Free quantity. Discount on these items is Percentage off or Fixed amount off (per item) with Discount value. 100% means a free item. The item is added to the cart automatically, its quantity is locked and it is removed when the rule is no longer met.
Giveaway (free product): the free product is added as soon as the coupon is applied, optionally only when the minimum spend or conditions are met.
Tiered (by quantity): Tiers takes one tier per line as "quantity: percent". The percentage applies to a cart line whose quantity reaches the tier. The highest reached tier wins. Products and categories on the Usage restriction tab limit the lines.
Tiered (by cart subtotal): Tiers takes one tier per line as "cart subtotal: percent" (subtotal excluding tax, before discounts). The highest reached tier wins.
Conditions & stacking
Stackable: the coupon can be combined with other coupons. When unticked, only the coupons listed as compatible may be used together with it.
Compatible coupons: coupon codes, comma-separated, allowed together with this coupon even when it is not stackable.
Incompatible coupons: coupon codes, comma-separated, never allowed together with this coupon (checked in both directions).
Auto-apply: applies the coupon automatically when the cart meets all its restrictions and conditions. A customer who removes it keeps it removed for the session.
Message when applied: the text the customer sees when the coupon is applied automatically.
Priority: the order in which auto-apply coupons are tried (lower first) and the order in customer coupon lists.
Campaign: the campaign this coupon belongs to.
Advanced conditions: all conditions with the same group number must match (AND). The coupon is valid when at least one group matches (OR). Leave empty for no extra conditions. Condition types:
Schedule
Limit the coupon to weekdays (Monday to Sunday) and hours in store time with Active from and Active until. Both times empty means no time restriction. An end earlier than the start spans midnight, for example 22:00 – 02:00. The start and expiry dates are on the General tab.
Display & sharing
Show to customers: lists the coupon in "Available coupons" on the cart and checkout and in My Account for everyone it is valid for. Coupons restricted to specific emails are always listed for those customers.
Promo banner: shows a banner with an Apply button above the cart and checkout.
Banner text: the banner text with the placeholders {code}, {discount} and {expiry}. Example: Use code {code} for {discount} off!
Banner color: the banner color.
Countdown: shows a countdown to the expiry date on the banner and the coupon card.
Coupon link: the shareable link with a Copy button and a QR code. Save the coupon to get them.
On a multilingual site, Message when applied and Banner text can be entered for each language.
Statistics
Orders, usage count (WooCommerce), discount given, revenue, average order, customers, link clicks and link conversion, and the list of paid orders with this coupon.
How it works
Available coupons: the cart and checkout show "Available coupons" with the discount, minimum spend, expiry date, Copy code and Apply. My Account has the page My coupons. Only coupons with Show to customers, and coupons restricted to the customer's own email, are listed. Bulk generated, personal and secret codes are never listed.
Promo banners: a banner such as Save 10% with code SUMMER10! with an Apply now button and an optional countdown.
Auto-apply: a coupon with Auto-apply is applied as soon as the cart qualifies. If the customer removes it, it stays removed for the session.
Coupon links: a link like https://your-site/?coupon=CODE remembers the code, counts the click and applies the coupon. If the cart does not qualify yet, the customer sees Coupon "CODE" will be applied automatically as soon as your cart qualifies. An invalid code shows The coupon code in the link is not valid. After too many invalid codes the customer sees Too many invalid coupon codes. Please try again later.
BOGO: the reward item is marked as a free gift or offer in the cart. Its quantity is locked, also in the Cart block, it is removed with the items that qualified for it, and the coupon never discounts anything else.
Emails: automatic coupons are emailed with their own subject, for example Welcome to your store! Enjoy 10% off your first order, with the coupon code, the expiry date and a Shop now or Return to cart button. Email templates can be overridden in yourtheme/vfw-coupons/emails/ (coupon.php, admin_alert.php, digest.php).
Statistics: only paid and on-hold orders count. Cancelled, failed and refunded orders are removed from the statistics.
Multilingual: works with qTranslate-XT, Polylang and WPML. Customer texts of a coupon can be entered for each language, and coupon emails use the customer's language.
The plugin works on the classic cart and checkout and on the Cart and Checkout blocks, with or without HPOS. It has no gift cards, no barcodes (only QR codes), no coupons on the product page and no bulk mailing of coupons.
Dashboard and reports
VF Coupons > Dashboard has the views Overview and Reports and the periods 7 days, 30 days, 90 days and 12 months.
Overview: orders with coupons, discount given, revenue with and without coupons, the average order with and without a coupon, active coupons, the chart Coupon use and discounts, Coupons by type, Top coupons and Top customers, and the latest admin alerts with Mark all as read.
Reports: Coupon performance (ROI), Customers using coupons, Product categories and Campaigns, with From and To dates, Export CSV and Print / PDF. Print / PDF opens a printable page that you save as PDF with the browser. Campaign reports cover all time.
Campaigns
VF Coupons > Campaigns groups coupons into campaigns to compare their results. A campaign has a Name, Description, Start and End. Planned campaigns become active on their start date and are completed after their end date. Statuses: Planned, Active, Paused, Completed, Draft. Add a coupon to a campaign with the Campaign field of the coupon. Deleting a campaign keeps its coupons.
Bulk generation
VF Coupons > Bulk Generate creates up to 10,000 unique single-use codes at once.
Number of coupons, Prefix, Random characters and Characters (Letters and digits, Letters only, Digits only) define the codes.
Template coupon (optional): copies the type, amount, restrictions, rules, schedule and conditions of an existing coupon. Fields below that you fill in override the template.
Discount type, Amount, Expiry date, Uses per coupon, Uses per customer, Individual use only and Coupon category set the coupons.
Click Generate coupons. The progress is shown, then the codes with Copy and Download CSV. Recent batches lists earlier batches.
Import / Export
VF Coupons > Import / Export works with CSV files (UTF-8, comma-separated, first row = column names).
Import coupons: choose the CSV file. Only the column "code" is required. Lists (products, categories, emails) are separated by |. An export file can be imported back. Skip codes that already exist is on by default; untick it to update existing coupons. Dry run (check the file without saving) checks the file first.
Export coupons: filter by status (All, Published, Pending, Draft), type and creation dates, then export.
REST API
The REST API is under /wp-json/vfw-coupons/v1/ for users with the manage_woocommerce capability: /coupons, /coupons/{id}, /analytics/dashboard and /analytics/coupon/{id}.
License key
VibeFox license key: bought on vibefox.net. One key works on one domain.
The plugin works only with an activated key. Without it the plugin is switched off: its features, shortcodes, blocks, admin pages, scheduled tasks and e-mails do not run, and its menu shows only Settings with the License tab. Your settings and data are kept and come back as soon as a key is activated. Right after you activate the plugin in Plugins, WordPress opens this tab.
Open VF Coupons > Settings > License, paste the key into License key and click Activate. The plugin switches on at once (the page reloads). The block License — VibeFox Coupons then shows the masked key, the status Active until with the date and the domain, the buttons Check now, Change key, Remove key and the link Manage licenses and domains in your account.
Messages under the field: The key looks incomplete — copy the whole key from your account. (nothing is sent), Key not found. Check that you copied the whole key from your account., This key belongs to another product. (use the key bought for VibeFox Coupons) and Domain limit reached (free a slot for this domain in your account, then click Check now). After the site address changes, click Check now.
An expired license keeps the plugin working, but without updates and support. Remove key switches the plugin off on this site; the domain slot is freed only in your vibefox.net account. If the license server cannot be reached, the plugin keeps working on the last known status. When the plugin is deleted, the key and its status are always removed.
Troubleshooting
The plugin menu shows only Settings: the license key is not active. Open VF Coupons > Settings > License and click Activate (or Check now if a key is already entered); the messages under the field are explained in License key.
The coupon list or banner does not appear: check that Front-end features is on, the coupon has Show to customers or Promo banner on, and it is valid for the current cart. Lists on the cart, checkout and My Account each have their own switch in Coupon display.
A coupon is not accepted: check the WooCommerce restrictions and usage limits, the Advanced conditions, the Schedule, the stacking rules and Maximum coupons per order. Payment and shipping method conditions are checked when the order is placed.
The BOGO item is not added: check Buy quantity and the products or categories in Buy. The reward is removed when the rule is no longer met.
Automatic or recovery coupons are not sent: check the switches in Automatic coupons and Abandoned carts, and the Scheduled tasks table in Cron. WP-Cron runs only when the site has visitors. With an external cron, run the hooks vfw_c_hourly and vfw_c_daily_digest.
Statistics look outdated: click Clear Statistics Cache in Uninstall & Clear.
For developers: actions such as vfw_c_coupon_usage_logged and vfw_c_welcome_coupon_generated.
Uninstall
Deactivating the plugin keeps all data. To remove it, deactivate and delete it on the Plugins page. Its scheduled tasks are always removed. The tables, settings, coupon categories and meta data are removed only if Delete data on uninstall was on. WooCommerce coupons themselves are always kept. The license key and license status of this plugin are always removed. The domain slot is freed only in your vibefox.net account. Existing orders are not affected.
