VibeFox Name Your Price — Help
Requirements
WordPress: 6.2 or later.
WooCommerce: 8.0 or later, installed and active. WordPress does not activate the plugin without it.
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_name_your_price folder to /wp-content/plugins/ by FTP.
2. Click Activate. WordPress opens VF Name Your Price > 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 Name Your Price appears with the pages Rules and Settings.
4. Open VF Name Your Price > Settings for the global options and VF Name Your Price > Rules for category, tag, product and role rules.
5. Or edit a product: Product data > General > Name Your Price. For variable products set it in each variation.
Configuration
Which settings apply to a product: the settings of the product or variation, then the first matching active rule (highest priority), then the global settings. A product set to Off for this product is never changed by rules.
Product settings
In the product editor, Product data > General, section Name Your Price (simple products):
Customer names the price:
If a rule applies to the product now, the editor shows its name.
Suggested price: shown as a hint and pre-filled in the price field. Empty = from the rule.
Minimum price: the lowest price a customer may pay. Empty or 0 = no minimum (free is allowed).
Maximum price: the highest price a customer may pay. Empty = no limit. A maximum lower than the minimum is removed with a notice.
Input type: Default (from settings / rule), Text field, Preset buttons or Dropdown.
Preset prices: for preset buttons and the dropdown: prices separated by comma and space ("5, 10, 25") or by semicolons ("4,99; 9,99").
Other amount: lets the customer type any amount besides the presets. Off = only the preset prices are accepted.
Hide quantity: sell one item per price; the quantity field is hidden.
Each variation has the same fields: Name Your Price, Suggested price, Minimum price, Maximum price, Input type, Preset prices, Other amount allowed and Hide quantity. In the product settings, a value that is not a valid price is not saved, and the editor shows Name Your Price: "…" is not a valid price and was not saved.
Rules
VF Name Your Price > Rules lists the rules with Active, Rule, Applies to, Prices, Input and Priority. Drag the rows to change the priority, switch a rule on or off, edit or delete it. Click Add rule to create one. All conditions of a rule must match; a rule without conditions matches nothing.
Name (for you): for example Donations.
Applies to (all chosen conditions must match; at least one is required): Product categories (sub-categories are included), Product tags, Products (search) or Product IDs (a variable product includes all its variations), and Customer roles (empty = everyone; the pseudo role Guest matches visitors who are not logged in).
Amounts are: Fixed amounts in your store currency, or % of the product regular price.
Suggested price, Minimum price (empty = no minimum), Maximum price (empty = no limit).
Price field: Input type (Default (from settings), Text field, Preset buttons, Dropdown), Preset prices (fixed amounts, "5, 10, 25" or "4,99; 9,99"), Other amount allowed besides the presets, Hide the quantity field.
Priority: higher wins when several rules match.
Rule is active: switches the rule on.
Pages that depend on the customer role must not be cached for logged-in users.
Settings
The global settings are on VF Name Your Price > Settings; the sections are listed on the left. Click Save Changes to save them.
General
Enable Name Your Price: master switch. Off: all products are sold at their normal prices, and the price fields and rules are ignored. Default: on.
Default input type: used when a product or rule does not choose its own: Text field (default), Preset buttons or Dropdown. Preset buttons and the dropdown need preset prices; otherwise the text field is shown.
Change the price in the cart: adds a Change link next to the price in the cart; the new price is validated again. Default: on.
Hide the quantity field: for all Name Your Price products: one item per price. It can also be set per product or rule. Default: off.
Round the entered price: No rounding (default), Up to the step, Down to the step or To the nearest step. The customer sees the rounded price before adding to the cart. Rounding never goes below the minimum or above the maximum.
Rounding step: for example 1 (whole amounts), 0.5 or 5. Default: 1.
Display
Price field position: for simple products, Above the add-to-cart button (default) or Right after the price. Variable products always show the field of the chosen variation above the add-to-cart button.
Price text in the catalog: shows "Suggested price", "Minimum" or "Name your price" under Name Your Price products in the shop, categories and widgets. Off: no price is shown there. The catalog button always leads to the product page to choose a price. Default: on.
Extra CSS class: added to the price field container, for your own styles.
Disable the plugin styles: the theme styles the price field completely. Default: off.
Texts
Leave a field empty to use the built-in text in the site language. %PRICE% is replaced with the formatted price. Each text can be set per language.
Price field label: default Your price.
"Other amount" button: default Other amount.
Price text with a suggested price: default Suggested price: %PRICE%.
Minimum hint: default Minimum: %PRICE%.
Maximum hint: default Maximum: %PRICE%.
Price text without suggested / minimum price: default Name your price.
Catalog button: default Choose price.
Error messages
Shown under the price field and in the cart. Leave a field empty for the built-in text.
No price entered: default Please enter a price.
Not a number: default Please enter a valid price.
Below the minimum: default The minimum price is %PRICE%.
Above the maximum: default The maximum price is %PRICE%.
Not one of the preset prices: default Please choose one of the offered prices.
Logging
Enable Logging: records rejected prices, customer prices added to carts, cart price changes and rule changes, without personal data, in a protected PHP file in the plugin's logs folder. Default: off. Below is the log, newest first, up to 500 entries, with Refresh.
Uninstall & Clear
Delete data on uninstall: when the plugin is deleted, remove settings, rules, product settings and the log. Deactivation never deletes data. Orders keep the customer prices. Default: off.
Data Cleanup: Delete All Rules, Delete Product Settings (removes Name Your Price settings from products and variations; saved orders keep their prices), Delete Log Entries and Clear Rule Cache, each with the number of entries.
License, Status, Import / Export
License holds the license block (see License key). Status shows your PHP, WordPress and WooCommerce versions against the minimum versions, and the multilingual support. Import / Export saves the settings to a JSON file and loads them on another site.
How it works
Product page: a Name Your Price product shows the price field (or the preset buttons or dropdown) with the label, the suggested price pre-filled and hints for the minimum and maximum, in your store's currency format. The customer may type "12,50", "12.50", "1 234,5" or "€ 12". Errors appear under the field. On a variable product the field of the chosen variation appears above the add-to-cart button.
Catalog: instead of an AJAX add-to-cart button, Name Your Price products show Choose price, which leads to the product page. The price text shows the suggested price, the minimum, the range of preset prices or "Name your price".
Validation: the price is checked on the server for every way of adding to the cart: the product form, ?add-to-cart= links, WooCommerce AJAX, theme AJAX add-to-cart and quick view, the Store API of the block cart, checkout and product blocks, "Order again" and the cart price editor. Empty, non-numeric, negative, below-minimum, above-maximum and non-preset prices are refused. The checkout re-checks every item, so changed limits apply to existing carts too: the classic checkout is blocked with the message, and the Store API checkout answers 409.
Cart: the price is kept in the cart, multiplied by the quantity, discounted by coupons and taxed like any product price. The entered price is treated like your normal product prices (WooCommerce > Settings > Tax > Prices entered with tax). On the classic cart page the customer clicks Change next to the price, enters a new one and clicks Save; on the Cart block the same editors are listed under the cart as Edit customer prices. With Hide quantity the quantity field is hidden in the product form and in the classic and block cart.
Orders: the price is saved with the order item. The shop manager sees it on the order screen as Customer price (and Suggested price), and e-mails show the paid price.
Links with a price: ?add-to-cart=123&vfw_nyp_price=15 adds the product with that price, validated like the form. Through the Store API send vfw_nyp_price in the add-item request.
Product list: the NYP column shows whether Name Your Price is on and the prices (or "by rule"). The filter Name Your Price: all / On for the product / Off for the product, quick edit (pre-filled) and bulk edit change the switch and prices.
CSV import / export: the WooCommerce product CSV has the columns NYP: Enabled, NYP: Suggested Price, NYP: Minimum Price, NYP: Maximum Price, NYP: Input Type and NYP: Presets.
Multilingual: with WPML, Polylang or qTranslate-XT every customer text and error message can be set per language; empty fields use the built-in text in the site language.
The plugin works with WooCommerce High-Performance Order Storage (HPOS) and the Cart and Checkout blocks. Name Your Price applies to simple products and variations. Grouped products are not supported (their children can be bought on their own pages), and external products are sold on another site.
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 Name Your Price > Settings > License, paste the key into License key and click Activate. The plugin switches on at once (the page reloads). The block License — VibeFox Name Your Price 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 Name Your Price) 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 Name Your Price > 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 price field does not appear: check that Enable Name Your Price is on, the product is set to On for this product or a rule matches it (the product editor shows the rule), and the product is simple or a variation. On a variable product the field appears after the customer chooses the variation.
Free orders: a product without a minimum (empty or 0) can be bought for 0. Set a minimum to prevent free orders. An empty price is always refused.
Only preset prices are accepted: turn on Other amount for the product (or Other amount allowed besides the presets in the rule).
Tax is added on top of the customer's price: the entered price follows your store setting Prices entered with tax. With prices exclusive of tax, the tax is added at checkout.
A product in the cart asks for a price: Please choose your price for "…" on the product page. The product has no valid customer price in the cart (for example the limits changed). The customer chooses the price again on the product page.
A rule does not apply: check that the rule is active, at least one condition is set and all conditions match, the product is not set to Off for this product, and no rule with a higher priority matches first. For role rules, make sure pages are not cached for logged-in users.
For developers: actions and filters such as vfw_nyp_is_nyp, vfw_nyp_min_price, vfw_nyp_validate_price and vfw_nyp_cart_item_price. The price templates (price-input.php, price-buttons.php, price-select.php) can be copied to yourtheme/woocommerce/vfw-name-your-price/ and edited there.
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. Settings, rules, product and variation settings and the log are removed only if Delete data on uninstall was on. Otherwise they stay for a later re-install. Orders always keep the customer prices.
