VibeFox Smart Discounts — Help
Requirements
WordPress: 6.2 or later.
WooCommerce: 8.0 or later, installed and active. WordPress does not activate the plugin without it. If WooCommerce is turned off later, the plugin stops working and shows the notice VibeFox Smart Discounts requires WooCommerce to be installed and active.
PHP: 8.0 or later.
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_smart_discounts folder to /wp-content/plugins/ by FTP.
2. Click Activate. WordPress opens VF Smart Discounts > 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 menu VF Smart Discounts appears with the pages Discount rules and Settings. The links Rules and Settings under the plugin name on the Plugins page open them too.
4. Open VF Smart Discounts > Discount rules, click Add rule, fill in the rule and click Save rule.
5. Optional: VF Smart Discounts > Settings — how several rules combine, products on sale, how discounted prices are shown.
Discount rules
Rules are managed on VF Smart Discounts > Discount rules. The list of rules is on the left: drag a rule (or use the arrow buttons, also on phones) to set its priority, search, and switch rules on or off. New rules are added at the bottom. The toolbar has Add rule, Export CSV and Import CSV (files of version 1.0 import too). The current Several rules match mode is shown with a Change link. The editor is on the right; Duplicate creates a disabled copy, Delete removes the rule. Unsaved changes are marked, and the page warns before you leave it.
Rule
Enabled: switches the rule on.
Name: for you, for example "Summer sale −10% on shoes". Customers see the label (below), or this name on a cart line when there is no label.
Applies to
Amount
Price change: Discount or Markup.
Type:
Amount: the percent, amount or price.
Products
Conditions
All conditions must be met. Without conditions the rule applies to every customer and cart. Click Add condition, choose the condition, the operator and the value:
Conditions marked cart (cart subtotal, quantity, distinct products, payment method, coupon) can be checked only in the cart: rules with them change prices in the cart and checkout only, and the shop shows the normal price. Customer role, paid orders and date range are known on every page, so these rules change the shop prices too.
Schedule
Starts, Ends: date and time in the site time zone. Empty = no limit.
Label for customers
Label: one field per language, for example "−10% this week". Shown under the product title in the shop and as the discount line in the cart. Leave empty to omit the label. The languages of qTranslate-XT, WPML or Polylang are detected automatically.
Usage limits
Orders in total, Orders per customer (logged-in customers): empty = unlimited. An order counts when it is placed (on hold, processing or completed) and is released when it is cancelled, refunded or failed. The editor shows how many orders used the rule; Reset counter sets the total back to zero.
Priority
Stop here — do not apply rules below this one: when this rule applies to a product (or the cart), lower rules are ignored. Useful with All matching rules.
Configuration
The settings are on VF Smart Discounts > Settings; the sections are listed on the left. Click Save Changes to save them.
Applying rules
Several rules match: product rules and cart rules are combined separately.
Products already on sale (with a WooCommerce sale price):
Display
Discounted price in the shop: for the catalog, product pages and variation prices. The cart always charges the discounted price.
Sale badge: shows the theme's "Sale" / "-10%" badge on products discounted by a rule, also for Woodmart labels. Default: on.
Savings in the cart: "You save …" under the line total in the cart and checkout. Default: on.
Quantity tier table: the table "Buy more, save more" on the product page for quantity-tier rules. Default: on.
Logging
Enable Logging: records changes to discount rules and settings (rule saved, deleted, duplicated, status changed, priorities updated, counters reset, rules imported, settings saved). Default: off. The latest 50 entries are shown below.
Uninstall & Clear
Delete data on uninstall: when the plugin is deleted (not deactivated), remove all rules, settings and usage counters. Orders are never changed. Default: off.
Clear plugin data: Delete discount rules (all saved rules, including disabled ones), Delete usage counters (total and per-customer) and Delete log entries, each with the number of records.
License, Status, Import / Export
License holds the license block (see License key). Status shows your PHP, WordPress and WooCommerce versions and the multilingual support. Import / Export saves the settings to a JSON file and loads them on another site.
How it works
Shop: product rules without cart conditions change the price on shop and category pages, the product page, variation prices and price ranges of variable products, product blocks and quick view. Depending on Discounted price in the shop the old price is crossed out. Rule labels appear under the product title, and quantity-tier rules show the "Buy more, save more" table.
Cart and checkout: the discounted price is used in the cart, mini-cart, classic and block checkout (Store API), orders and e-mails. Cart rules add their own line to the totals, for example "Loyalty discount −5,00 €". With Savings in the cart customers see "You save …". In the classic checkout the totals refresh when the customer picks another payment method; in the checkout block the method is sent to the cart the same way, and the order is re-checked when it is placed.
Correct prices: prices never go below zero and are never discounted twice: every calculation (catalog, AJAX, mini-cart, Store API, totals) starts from the original price, and results are cached per request. The WooCommerce REST API and wp-admin keep the real product prices.
Coupons: the rule changes the product price first; a WooCommerce coupon is then applied to that price. Coupons with "Exclude sale items" do not apply to products discounted by a rule.
Price filter and sorting: WooCommerce filters and sorts by the prices stored with the products; discounted prices are calculated on the fly and are not used there.
REST API (read-only, shop managers): /wp-json/vfw-dsc/v1/rules, /rules/{id} and /product/{id}/discount.
Multilingual: rule labels have one field per language (qTranslate-XT, WPML, Polylang).
The plugin works with WooCommerce High-Performance Order Storage (HPOS) and the Cart and Checkout blocks.
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 Smart Discounts > Settings > License, paste the key into License key and click Activate. The plugin switches on at once (the page reloads). The block License — VibeFox Smart Discounts 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 Smart Discounts) 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 Smart Discounts > 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 shop shows the normal price although the rule is enabled: the rule has a cart condition (subtotal, quantity, payment method, coupon…); such rules can only be checked in the cart, so the discount appears there. Also check the schedule, the usage limit, Discounted price in the shop and the priority: with First match only the top matching rule applies.
A sale product is not discounted: check Products already on sale. With Best price the rule is used only when it is lower than the sale price; with Do not change them sale products are skipped.
A coupon does not apply: coupons with "Exclude sale items" skip products discounted by a rule.
Page caching: rules that are the same for every visitor work with page caching. Rules by customer role or per-customer limits show personal prices: do not serve those pages from a full-page cache to logged-in customers.
The editor shows "Please fix the highlighted problems.": a field or a condition is incomplete; conditions without a value are not saved silently but reported.
For developers: the filter vfw_dsc_skip_pricing — return true to keep the original prices in a request.
Uninstall
Deactivating the plugin keeps all data. To remove it, deactivate and delete it on the Plugins page. The license key and license status of this plugin are always removed. Rules, settings and usage counters are removed only if Delete data on uninstall was on. Otherwise they stay for a later re-install. Orders are never changed.
