VibeFox Compare Products — Help
Requirements
WordPress: 5.8 or later.
WooCommerce: 5.0 or later, installed and active. Without it the plugin shows a notice in the admin.
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_compare_products folder to /wp-content/plugins/ by FTP.
2. Click Activate. WordPress opens VF Compare 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. Once the key is active, the plugin creates its database tables, a daily cleanup task and a Product Comparison page with the [vfw_compare_table] shortcode. If a published page with this shortcode already exists, it is used instead.
4. The menu VF Compare Products appears in the WordPress admin with Settings and Dashboard. You can also click Settings under the plugin name on the Plugins page.
5. Check the button places, the table fields and the bar (see Configuration). Compare buttons appear in your shop at once.
Configuration
All settings are on VF Compare Products > Settings, in tabs on the left. Click Save Changes after editing. The settings are available to administrators.
General
Enable Compare: turns the product comparison on or off on the whole site. Default: on.
Compare Page: the page with the full comparison table. It must contain the [vfw_compare_table] shortcode. Created automatically on activation.
Max Products: the maximum number of products that can be compared at once, from 2 to 20. Default: 6. When the list is full, the visitor gets a message.
Storage for Guests: where the comparison list of a visitor who is not logged in is kept. Logged-in customers always keep their list in their account, and the guest list is merged into it on login.
Guest Data Lifetime (days): the cookie lifetime, and how long unused guest lists are kept in the database. Old lists are removed by a daily cleanup. Default: 30.
Enable Statistics: counts how often each product is added to a comparison (VF Compare Products > Dashboard). Default: on.
Theme's Own Compare: used only with themes that have a built-in compare (Woodmart).
Button
Show on Catalog: the compare button in product lists: shop, categories, search, related products and product blocks. Default: on.
Catalog Position: where the button is placed in product lists. In Woodmart Automatic shows an icon next to the wishlist and quick view icons.
Show on Product Page: the compare button on single product pages and in the theme's quick view. Default: on.
Product Page Position: where the button is placed on the single product page. The same options as above. Default: Automatic.
Button Type: Button (default) or Link (text link). Theme-styled icons keep the theme look.
Text: Compare: the text while the product is not in the comparison yet. Default: Compare.
Text: Added: shown for 2 seconds after the product is added. Default: Added ✓.
Text: In Compare: shown while the product is in the comparison. Default: In Compare.
Text: Remove: shown on hover when the product is in the comparison. A click removes it. Default: Remove.
Leave the texts empty to use the translated defaults. qTranslate-XT tags like [:en]…[:de]…[:] are supported, and the texts are registered for WPML String Translation and Polylang Strings.
Show Icon: displays an icon before the button text. Default: on.
Custom CSS Class: additional CSS classes for the compare button, separated by spaces.
Table
Open Method: what the Compare button of the bar does. The comparison page is always available by its URL.
Fields: drag rows between the Enabled and Disabled lists and into the order you need. Available: Image, Price, Rating, Short description, SKU, Availability, Weight, Dimensions, Categories, Tags, Attributes (one row per attribute) and Add to Cart. Categories and Tags are off by default. The product name is always shown in the table header.
Show Add to Cart: the Add to cart row of the table. It also needs the Add to Cart field enabled above. Default: on.
Show Remove Button: a × button in the header of every product column. Default: on.
Highlight Differences: marks rows whose values differ, grays out identical rows and colors the best and worst price and rating (colors in the Style tab). Default: on.
Hide Empty Rows: hides rows where none of the compared products has a value. Default: on.
Fixed First Column: keeps the field names visible while scrolling the table horizontally. Default: on.
Fixed First Row: keeps the product names visible while scrolling the table vertically. Long tables get their own scroll area. Default: on.
Reorder Products: visitors can change the column order by drag and drop or with the ‹ › buttons. Default: on.
Bar
Show Sticky Bar: a bar with the compared products at the edge of the screen. When it is off, place it anywhere with [vfw_compare_bar]. Default: on.
Position: Bottom (default) or Top.
Background Color: the background color of the bar. Default: white.
Show Thumbnails: product images in the bar. Default: on.
Show Clear Button: a button that removes all products from the comparison. Default: on.
Show "Add product": a "+ Add product" slot with a product search, while the list is not full. Default: on.
Min Products to Show Bar: the bar appears when the comparison has at least this many products. It is always hidden when the list is empty. Default: 1.
Style
Accent Color: buttons, the bar Compare button, the active filter and the marks of differing rows. Default: #2196F3.
Better Value Color: the background of the best value (lowest price, highest rating). Default: light green.
Worse Value Color: the background of the worst value (highest price, lowest rating). Default: light red.
Same Value Color: the background of rows where all products have the same value. Default: light gray.
Border Radius: the corner radius of buttons, the bar items and the popup, from 0 to 30 px. Default: 4.
Custom CSS: extra CSS for the comparison interface. It is loaded only where the plugin is used.
Cron
Shows the daily cleanup task of old guest lists: Schedule, Last Run and Next Run.
Logging
Enable Logging: writes diagnostic messages to logs/vfw-cmp-debug.log.php in the plugin folder. The file is protected from web access. Default: off.
Log Level: the minimum severity to record: Info, Warning or Error (default).
Below the fields the last 500 log entries are shown, with Refresh Log.
Uninstall & Clear
Delete Data on Uninstall: when on, deleting the plugin (Plugins, then Delete) permanently removes all its data: settings, comparison lists, statistics, database tables, the comparison page and log files. Deactivating the plugin never deletes data. Default: off.
Data Cleanup: buttons that delete data at once, after a confirmation, with the number of records shown:
License
The VibeFox license block (see License key).
Status
Shows the PHP, WordPress and WooCommerce versions against the minimum versions, and the Multilingual support card: active multilingual plugins, site languages and the default language.
Import / Export
Download Export File saves the settings as a JSON file. Import loads settings from a JSON file or pasted text.
How it works
Compare button
The customer clicks Compare on a product. The button shows Added ✓ for 2 seconds, then In Compare, and Remove on hover. A second click removes the product. When the list is full, the customer sees "You can compare up to … products. Remove a product from the comparison first." For variable products the parent product is compared: the price range, all attribute values and the Select options button.
Comparison bar
The bar shows the thumbnails of the compared products with remove buttons, a counter like "2 of 6", Compare and Clear all. Add product opens a live product search. The bar can be collapsed. On phones it starts collapsed and shows only the counter and the Compare button.
Comparison table
The popup has Full page, Print and Share. The comparison page has the same table with Print and Share. The filter All, Differences only and Similarities shows the rows you need. Products can be reordered by drag and drop or with the ‹ › buttons and removed with ×. Add to cart works without reloading the page. Print prints only the table.
Share copies a link like /product-comparison/?compare=12,34,56. Anyone who opens it sees the same comparison with the note "You are viewing a shared comparison." and the link Show my comparison. The visitor's own list is not changed. Products that are not published are never shown.
Storage
Guests keep their list as set in Storage for Guests. Logged-in customers keep their list in their account, and it follows them across devices. After login the guest list is merged into it.
Caching
The comparison page is excluded from page caching automatically. Product pages show the button state of the current visitor, so in your cache plugin exclude pages for visitors with the vfw_cmp_products or vfw_cmp_key cookie (most cache plugins have a "never cache cookies" option). The plugin loads its files only where compare buttons, the table, the widget or the shortcodes are shown.
Woodmart
With Woodmart the button takes the place of the theme's compare icon and looks like the theme's action icons. In Replace mode the theme's header compare icon is hidden, because it leads to the theme's compare. Put [vfw_compare_counter link="yes"] into an HTML block of the header instead.
Dashboard
VF Compare Products > Dashboard shows Products added to comparisons, Unique products compared, Compared in the last 7 days, Saved comparison lists and the list Most compared products with Times compared and Last compared. It needs Enable Statistics.
Widget
The widget VibeFox Compare Products shows the products in the comparison list, with Title, Max items to show and Show thumbnails.
Multilingual stores
The plugin works with qTranslate-XT, Polylang and WPML. The button texts can be entered per language or translated with WPML String Translation and Polylang Strings.
Shortcodes
[vfw_compare_button product_id="123" text="Compare" type="button" icon="yes" class=""]: a compare button. type is button or link, icon is yes or no. Without product_id it uses the current product in a product loop.
[vfw_compare_table products="12,34" fields="price,sku,attributes" highlight="differences" hide_empty="yes"]: the comparison view. highlight is differences or none, hide_empty is yes or no. Without products it shows the visitor's list or a shared link (?compare=…).
[vfw_compare_counter text="Compare ({count})" link="yes"]: the number of compared products, for example in the header.
[vfw_compare_bar]: the comparison bar inside your content. Works only when Show Sticky Bar is off.
Templates and hooks
Copy a file from wp-content/plugins/vfw_compare_products/template/ to wp-content/themes/your-theme/vfw-compare-products/ and edit it: compare-button.php, compare-bar.php, compare-popup.php, compare-page.php, compare-table.php, compare-widget.php. The variables are listed at the top of each file.
Developers can use the actions and filters listed in readme.txt, for example vfw_cmp_table_fields, vfw_cmp_field_value, vfw_cmp_max_products and vfw_cmp_shareable_url, and the JavaScript event vfw_cmp_updated after every change.
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 Compare 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 Compare 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 Compare 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 Compare 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 compare button does not appear: check that Enable Compare, Show on Catalog and Show on Product Page are on. Try another Catalog Position or Product Page Position if your theme does not use the standard WooCommerce places. Block product grids (Product Collection and block templates) do not run the classic product hooks; add the button there with [vfw_compare_button].
The bar does not appear: check Show Sticky Bar and Min Products to Show Bar. The bar is hidden while the list is empty.
Buttons show the wrong state with a page cache: exclude pages for visitors with the vfw_cmp_products or vfw_cmp_key cookie in your cache plugin.
"This product cannot be compared.": the product is not published or is password-protected.
"Your session has expired. Please reload the page and try again." or "The comparison has changed. Please reload the page.": the page was open for a long time, or the list was changed in another tab. Reload the page.
Two compare buttons with Woodmart: set Theme's Own Compare to Replace.
The Dashboard is empty: turn on Enable Statistics. Products are counted from then on.
Something else goes wrong: turn on Enable Logging with Log Level Info and check the log in the Logging tab.
Uninstall
Deactivating the plugin keeps all data and stops the daily cleanup. To remove it, deactivate and delete it on the Plugins page. The license key and license status of this plugin are always removed. If Delete Data on Uninstall was on, deleting also removes the settings, the comparison lists and statistics tables, the comparison page (if it still holds the [vfw_compare_table] shortcode), the widget settings and the log files. Otherwise the data stays for a later re-install.
Woodmart is a trademark of its respective owner. This plugin is not affiliated with or endorsed by Woodmart.
