VibeFox Gift Products — Help
Requirements
WordPress: 6.0 or later.
WooCommerce: 7.0 or later, installed and active.
PHP: 8.0 or later.
Scheduled tasks: scheduled gift card and gift deliveries and card expiry run hourly with WP-Cron. For exact timing call the cron URL from Settings > Cron from a server cron job.
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_gift_product folder to /wp-content/plugins/ by FTP.
2. Click Activate. WordPress opens VF Gift Products > 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. The menu VF Gift Products appears in the WordPress admin with the pages Dashboard, Free Gifts, Gift Wrap, Gift Orders, Gift Registries, Gift Cards and Settings. Pages of switched-off modules are hidden.
4. Open VF Gift Products > Settings > Modules and leave on the modules you need. Click Save Changes.
5. Free gifts: VF Gift Products > Free Gifts > Add rule. Gift wrap: VF Gift Products > Gift Wrap > Add wrap. Gift cards: Products > Add New with the product type Gift Card.
6. Optional: add the external cron URL from Settings > Cron to your server cron.
Configuration
All general settings are on one page: VF Gift Products > Settings. The sections are listed on the left. Click Save Changes to save. Texts marked as translatable can be entered for each language on a multilingual site.
Modules
Each module has a switch. A disabled module adds no hooks, menus, AJAX actions or REST routes. All are on by default.
Free gifts: adds free products to the cart by rules (cart total, quantity, products, categories, roles, BOGO).
Gift wrap: paid or free gift wrapping per product or for the whole order, with a gift message.
Gift this product: customers send a product to another person: recipient, message, delivery date, shipping to the recipient.
Gift registry: wish lists for weddings, birthdays and other events, with a shareable page.
Gift cards: sell gift cards (product type "Gift Card") and accept them in the cart.
Free Gifts
The gift rules are managed on the Free Gifts page (see Free gifts).
When several rules match:
No gifts with coupons: free gifts are removed while any coupon is applied to the cart. Default: off.
Progress notice in the cart: "Add 12 € more to get a free gift!" with a progress bar for the nearest cart-total or quantity rule (classic cart). Default: on.
Progress bar color: default: #4CAF50.
Gift chooser title: the heading of the popup where customers choose their gift. Default: Choose Your Free Gift!
Banner badge: the badge of the [vfw_gp_free_gift_banner] shortcode and block. Empty means no badge. Default: Free Gift!
Gift Wrap
Offer wrapping:
Position on the product page: Before the "Add to cart" button (default) or After the "Add to cart" button.
Display on the product page: Dropdown (default), Checkbox (first wrap only), Grid with images, Button + popup or Button + slide-down panel.
Gift message: a note for the recipient, shown in the order, the admin and the emails. Default: on.
Message label: default: Gift Message.
Message max length: from 20 to 2000 characters. Default: 500.
Exclude categories and Exclude product IDs (comma-separated): products that cannot be wrapped. Virtual products and gift cards are never wrapped.
Gift This Product
Button text: default: Gift This Product.
Button icon: default: a heart.
Button position: After the "Add to cart" button (default), Before the "Add to cart" button, Before the price or After the price.
Recipient form: Popup (default) or Inline (expands).
Personal message: a message field in the form. Default: on.
Delivery date: the customer chooses when the recipient gets the gift email. Default: on.
Require recipient phone: default: off.
"Hide the price" ticked by default: the price is hidden in the recipient email and gift page and flagged on the order (no invoice in the parcel). Default: on.
Notify on "Processing": sends the recipient email as soon as the order is paid. Off means when the order is Completed. Default: off.
Exclude categories and Exclude product IDs: products without the button.
Gift Registry
Customers manage registries in My Account > Gift Registries. The public search page is /registry/search/.
"Add to gift registry" on product pages: shown to logged-in customers under the add-to-cart form. Default: on.
Registries per customer: from 1 to 50. Default: 5.
Items per registry: from 1 to 500. Default: 100.
Search results: registries per search page. Default: 12.
Gift Cards
Issue the card when the order is: Completed (default) or Processing (paid).
Valid for (days): 0 means never expires. A product can set its own period. Default: 365.
Card also pays shipping: default: off.
Card also pays taxes: default: off.
Code prefix: default: GIFT.
Code length: from 8 to 32. Random characters are always at least 10. Default: 16.
Code characters: Letters and digits (default), Letters or Digits.
Card designs: optional images the buyer can choose from. Click Add design and enter a Name and an Image URL from the Media Library.
Emails
The plugin sends the gift card delivery email, the "you received a gift" email, the registry purchase email to the owner and the thank-you email to the buyer.
From name: empty means the WooCommerce sender name.
From address: empty means the WooCommerce sender address.
Display
Primary color: buttons, links and highlights of the plugin on the storefront and in emails.
Accent color and Corner radius (px) (0 to 20, default: 8).
Cron
Scheduled tasks: the external cron URL, the last run and the next WP-Cron run.
Logging
Enable Logging: writes to a protected PHP file in the plugin logs folder. Default: off.
Log level: Info and above (default), Warnings and errors or Errors only.
Log file: the latest 40 entries of logs/vfw_gp_debug.php.
Uninstall & Clear
Delete all data on uninstall: when the plugin is deleted, its tables (rules, gift cards, wraps, gift orders, registries), settings and logs are removed. Deactivation never deletes data. 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.
Free gifts
VF Gift Products > Free Gifts lists the rules with trigger, gift, priority, uses and dates, and the tab with given gifts (every order that received a free gift). Click Add rule:
Title: shown to customers above the gift chooser, for example Free tote bag from 50 €. Status: Active or Inactive.
The customer gets a gift when…
Repeat: cart total: one gift for every full amount (50 € gives 1, 100 € gives 2). BOGO: buy 2 get 1, buy 4 get 2 and so on. Max gifts in total limits repeating rules (0 = no limit).
Priority: lower numbers are checked first.
Gift products: real products, stock is reduced. For variable products choose a variation. For BOGO leave it empty to give the purchased product itself. Quantity of each gift sets the quantity.
Several gift products: Add all of them automatically or The customer chooses one, with the Chooser style (cart page): Popup, Grid, Carousel, Dropdown or Table.
Price shown in the cart: "Free", Crossed-out price + "Free" or Nothing.
Limits and schedule (optional): Starts, Ends (inclusive), Total uses (orders) (0 = unlimited, for example "first N customers"), Uses per customer (logged-in customers), Cart total up to, Only with coupon, Only for countries (billing or shipping country), Days of the week (none ticked = every day) and Registered customers only.
Click Save rule.
In the cart: the gift line shows Free gift. Its quantity cannot be changed, and removing the qualifying products removes the gift. When the customer chooses, the cart shows Choose your free gift and later Change your free gift (currently: …). The progress notice says Add … more to your cart to get a free gift! or You qualify for a free gift!
Gift wrap
VF Gift Products > Gift Wrap lists the wraps and their sales. Click Add wrap: Title, Description, Price (per wrapped item or once for the whole order; 0 = free; taxed like the product or as a taxable fee), Image, Occasion (label), Sort order and Status, then Save wrap. Add at least one wrap, otherwise the option does not appear.
Per product, the customer chooses a wrap on the product page and the price is added to the line. For the whole order, the wrap is chosen in the cart or at checkout and added as one fee. The gift message is saved in the order (line item for a product wrap, order for the order wrap) and shown in the admin order, the customer's order view and the WooCommerce emails.
The Sales view shows revenue and wraps sold per wrap for paid orders (processing, completed, on hold) in the chosen period.
Gift this product
On the product page the customer clicks the gift button (default: Gift This Product) and fills in the form: Recipient name, Recipient email, Recipient phone, Notify the recipient on (delivery date), Ship directly to the recipient (street, city, postcode, country), Personal message and Hide the price from the recipient, then Add gift to cart. A line with a recipient address is shipped as a separate package.
When the order is paid or completed (see Notify on "Processing"), or on the chosen date, the recipient gets an email with a link to a private gift page. The link has an unguessable token and the page is not indexed by search engines.
VF Gift Products > Gift Orders lists these orders with the statuses Pending, Delivered and Cancelled, with Resend e-mail and Send e-mail now.
Gift cards
Product: in Products > Add New choose the product type Gift Card. The Gift Card tab has:
Pricing Type:
Discount %: optional, for example sell a 100 card for 90 (set 10). Expires After (days): 0 uses the default from the settings. Allow Scheduling: customers can schedule delivery for a future date.
Buying: on the product page the customer chooses the value and design and enters the recipient, sender, message and delivery date. The card is issued when the order reaches the status set in Issue the card when the order is, one card per purchased unit, and delivered by email, now or on the chosen date.
Redeeming: the customer enters the code in the field Have a gift card? in the classic cart or checkout, or in the [vfw_gp_gift_card_redeem] shortcode. Several cards can be used in one order. The balance is debited when the order is placed (classic and block checkout) and returned when the order is cancelled, fails or is fully refunded. A partial refund does not return the balance. An invalid code shows This gift card code is invalid, expired, or has no remaining balance.
Admin: VF Gift Products > Gift Cards lists the cards with search by code, name or email and filters by status (Active, Disabled, Expired). Actions: Add card, Edit (changes are recorded as adjustments), History, Resend, Bulk generate (Number of cards and Amount each, no emails are sent), Import CSV and Export CSV. The Transactions tab lists card creation, redemptions, refunds and manual adjustments.
CSV import columns (first row): amount, balance (optional, for partly used cards), code (optional, keeps your code), recipient_email, recipient_name, sender_name, message, expires_at (Y-m-d). No emails are sent.
Avoid running two gift card systems on one store: this plugin uses its own product type and its own tables.
Gift registries
Customers create registries in My Account > Gift Registries: Registry title, Event type (Birthday, Wedding, Baby Shower, Housewarming, Anniversary, Other event), Event date, Partner name (optional), Description and Who can see it: Public (searchable), Password protected or Private (only me). Products are added with Add to gift registry on the product pages, with a Desired quantity and a priority from Must have to Nice to have. Variations are supported.
The registry page /registry/{slug}/ is shown in your theme's page template with the progress, share links and a Gift this button per item. The search page is /registry/search/. Password-protected registries ask for the password (10 attempts per 10 minutes). Only public registries appear in search and the REST API.
Purchases from a registry are counted when the order is paid. The owner gets an email, and the buyer gets a thank-you email.
VF Gift Products > Gift Registries lists all registries with owner, event, visibility and gifts, with Close and Reopen. Closing a registry hides it from everyone.
Shortcodes and blocks
Editor blocks in the category VibeFox Gift Products: Gift Card Purchase Form, Gift Card Balance Checker, Gift Registry Search, Gift Registry Display, Free Gift Promo Banner and Gift Wrap Options.
Dashboard
VF Gift Products > Dashboard shows free gifts given, gift wrap revenue and wraps sold, gift orders and those waiting for delivery, active registries and the gift card balance on active cards, for Today, 7, 30 or 90 days, 12 months or your own dates.
How it works
The number of gifts is recalculated by the server on every cart change. Gift lines cannot be edited, and the price of a gift is always 0.
Block cart and checkout: gifts, wrap prices, fees and gift card balances work through the Store API. The gift chooser, the order-level wrap selector and the gift card code field are parts of the classic pages. On a block cart page place [vfw_gp_gift_card_redeem] for the code field. In the block cart WooCommerce shows a remove link on a free gift, but the gift is added back while the cart qualifies.
Emails: templates can be overridden in yourtheme/vfw-gift-products/emails/{type}.php.
Multilingual: works with qTranslate-XT, Polylang and WPML. Texts such as button labels, titles and designs can be entered for each language.
The plugin has no PDF, printable or physical gift cards, no QR codes or barcodes, no gift card top-up and no My gift cards page, no tiered prices, no conditions by brand, SKU, attribute or purchase history, no packing slips and no email preview.
REST API
The REST API is under /wp-json/vfw-gp/v1/: /free-gifts/rules, /free-gifts/check, /gift-cards, /gift-cards/{id}, /gift-cards/{id}/redeem, /gift-cards/balance/{code}, /registries, /registries/{id} and /registries/{id}/items. The balance check is public and rate limited.
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 Gift Products > Settings > License, paste the key into License key and click Activate. The plugin switches on at once (the page reloads). The block License — VibeFox Gift Products 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 Gift Products) 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 Gift Products > 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 free gift is not added: check that the Free gifts module is on, the rule is Active, its dates, limits, countries and weekdays match, and No gifts with coupons is off if a coupon is used. Cart total rules count the non-gift items before coupons.
The customer cannot raise the gift quantity: this is intended: The quantity of a free gift cannot be changed.
The gift wrap option does not appear: add at least one active wrap and check Offer wrapping and the excluded categories and products. Virtual products and gift cards are never wrapped.
Gift card or gift emails arrive late: scheduled deliveries run hourly with WP-Cron, which needs site visitors. Add the external cron URL to your server cron.
The gift card code field is missing on the block cart: add the [vfw_gp_gift_card_redeem] shortcode to the page.
Uninstall
Deactivating the plugin keeps all data. To remove it, deactivate and delete it on the Plugins page. The tables, settings and logs are removed only if Delete all data on uninstall was on. Existing orders are not affected. The license key and license status of this plugin are always removed. The domain slot is freed only in your vibefox.net account.
