Back

VibeFox Recently Viewed Products — Help

Requirements

WordPress: 6.0 or later.

WooCommerce: 7.0 or later, installed and active. WordPress does not activate the plugin without it.

PHP: 8.0 or later.

Page builders (optional): the Elementor widget is registered when Elementor is active (category VibeFox); the WPBakery element is registered when WPBakery Page Builder is active.

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_recently_viewed_products folder to /wp-content/plugins/ by FTP.

2. Click Activate. WordPress opens VibeFox Recently Viewed 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 menu VF Recently Viewed Products appears with the pages Dashboard and Settings.

4. The block appears on product pages right away. Configure everything in VF Recently Viewed Products > Settings.

5. To show it elsewhere use the shortcode [vfw_recently_viewed], the "Recently Viewed Products" block, the widget, or the Elementor / WPBakery element.

Configuration

All settings are on VF Recently Viewed Products > Settings; the sections are listed on the left. Click Save Changes to save them. On a multilingual site the headings and texts have their own value per language.

General

Enable plugin: master switch. When off, nothing is tracked and no block is shown. Default: on.

Products to remember: the history length per visitor, 5 to 100; the oldest product is dropped when the limit is reached. Default: 50. A smaller value also trims the stored customer history when you save.

Guest history lifetime (days): guests' history is kept in the browser cookie vfw_rvp_viewed (product IDs only). Default: 30.

Store customer history in the database: logged-in customers see the same history on every device. The guest history is merged in when they log in. Default: on.

Track out-of-stock products: default on.

Track only with cookie consent: records views only after the visitor accepted "Functional" cookies in a consent banner that supports the WP Consent API (Complianz, CookieYes, Cookiebot, VibeFox GDPR and others). Without such a banner nothing is tracked. Default: off.

Load with AJAX (page-cache compatible): recommended. Turn it off only if the site has no page cache: the products are then printed with the page. Default: on.

Loading placeholder: Skeleton (default), Spinner or None, shown while the products load.

Automatic placement

Show on product pages: the product being viewed is never listed. Default: on.

Position on the product page:

Before the description tabs
After the description tabs
After related products: the default; also works with the Woodmart theme.
At the end of the product page

Show on the cart page: under the cart (classic cart and the Cart block), also when the cart is empty. Default: off.

Heading: leave empty for the translated default "Recently viewed products". qTranslate-XT tags are supported.

Products: how many products the automatic block shows, 1 to 20. Default: 4. Layout, columns and card options come from the Display section.

Display

Defaults for every block. Shortcode attributes and block or widget options override them.

Layout: Grid (default), Slider or List.

Products: default 6.

Columns (desktop): default 4. Columns (tablet, ≤ 768 px): default 2. Columns (phone, ≤ 480 px): default 2.

Show image: default on. Image size: WooCommerce thumbnail (default), Thumbnail, Medium or Large.

Image hover effect: None, Zoom (default) or Second image (the first gallery image of the product).

Show badges (Sale, Out of stock): default on.

Show price, Show rating, Show "Add to cart" button: default on.

Show "Remove" button (×) on cards: lets the visitor remove a product from the history. Default: on.

Show "Clear viewing history" button: default off.

Default heading: the heading of shortcode or block instances without their own title. Empty = no heading.

Text when there is no history: leave empty to hide the whole block, heading included, for visitors without history.

Slider

Slides per view (desktop): default 4; used by slider blocks that do not set their own number of columns. Slides per view (tablet): default 2. Slides per view (phone): default 2.

Navigation arrows, Navigation dots, Loop: default on.

Autoplay: default off; not used for visitors who prefer reduced motion. Autoplay interval (ms): default 3000. Pause on hover: default on.

Styles

Accent color: buttons, links on hover, slider dots. Default: #3574f0.

Card background: default #ffffff. Card corner radius (px): default 8. Gap between cards (px): default 20.

Custom CSS: loaded only on pages with a recently viewed block. All classes start with .vfw-rvp-.

Filtering & sorting

Sort by: Last viewed first (default), Price, Rating, Popularity (sales), Random, Name or Publish date. Other orders sort the most recently viewed products.

Hide the product being viewed: on a product page the product itself is not listed. Default: on.

Hide out-of-stock products: default off. Also applied when WooCommerce > Settings > Products > Inventory hides out-of-stock items.

Hide products the customer already bought: for logged-in customers, orders Processing and Completed. Default: off.

Never show categories, Never show tags: products of these categories and tags are never listed.

Cron

Shows the schedule, last run and next run of the automatic history cleanup.

Customer history lifetime (days): older entries are deleted by a daily cleanup task. Default: 90.

Logging

Enable logging: writes tracking and history events to a protected PHP file in the plugin logs directory. Default: off.

Log level: Info (default), Warning or Error only. The log is shown below.

Uninstall & Clear

Delete all data when the plugin is deleted: settings, the customer history table and logs are removed on uninstall (Plugins > Delete). Deactivation never deletes data. Default: off.

Data Cleanup: Delete All Viewing History (history stored for logged-in customers; guest cookies are not affected), Clear Log, and Clear Purchased Products Cache (the cached list of products customers have purchased; it is rebuilt when needed). Each row shows the number of entries.

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

Tracking: when a visitor opens a product page, the product is added to the history. Hidden, private, draft and password-protected products are never tracked. Guests: the product IDs are stored in the first-party cookie vfw_rvp_viewed, without personal data. Logged-in customers: the history is stored in the database (user, product, time of the last view), limited to Products to remember and cleaned up after Customer history lifetime.

Display: with Load with AJAX the page contains only a placeholder, and all blocks of the page are loaded with one AJAX request without a nonce, so it keeps working on pages cached for any time. The block hides itself for visitors without history unless Text when there is no history is filled in. On the cart, products already in the cart are skipped.

Visitor actions: the × button removes a product from the history, and Clear viewing history clears it.

Dashboard: VF Recently Viewed Products > Dashboard shows the customers with history, stored views and different products, and the products most viewed by logged-in customers. Guest history lives only in the visitors' browsers.

Privacy: the plugin adds a text to the WordPress privacy policy guide, takes part in the WordPress personal data export and erasure tools (Tools > Export Personal Data / Erase Personal Data), and deletes a user's history when the user is deleted.

Multilingual: with WPML, Polylang or qTranslate-XT the headings and the text when there is no history can be set per language.

Scripts and styles load only on product pages and where a block is shown. The plugin works with the Cart and Checkout blocks.

Shortcode, block, widget and page builders

[vfw_recently_viewed] shows the block. Attributes that are not given take the plugin settings: count, columns, columns_tablet, columns_mobile, layout (grid / slider / list), title, show_title, show_price, show_rating, show_add_to_cart, show_image, show_badge, show_remove, image_size, orderby (date_viewed / price / rating / popularity / random / name / date), order (ASC / DESC), category and exclude_category (slugs, comma separated), exclude (product IDs), hide_out_of_stock, exclude_purchased, no_products_text, show_clear_btn, ajax, slider_autoplay, slider_speed, slider_arrows, slider_dots, slider_loop, slider_pause_hover, class.

Block: "Recently Viewed Products" in the block editor, with a live preview. If your account has no viewing history yet, the preview says so; on the site every visitor sees the products they viewed.

Widget: "VibeFox Recently Viewed Products" in Appearance > Widgets.

Elementor: the "Recently Viewed Products" widget in the VibeFox category, with style options for cards, product title and price. WPBakery: the "Recently Viewed Products" element.

PHP: vfw_rvp_display() in a theme template.

To change the card markup, copy a file from the plugin folder template/ to your-theme/vfw-recently-viewed/ and edit it.

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 VibeFox Recently Viewed 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 Recently Viewed 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 Recently Viewed 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 VibeFox Recently Viewed 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 block is not visible for a new visitor: when there is no history and Text when there is no history is empty, the block hides itself. Fill in the text to always show it.

Nothing is tracked: check Enable plugin. With Track only with cookie consent on, views are recorded only after the visitor accepts functional cookies in a banner that supports the WP Consent API.

Page caching (WP Rocket, LiteSpeed, Cloudflare and others): keep Load with AJAX on. admin-ajax.php must not be cached (it never is by default).

A product does not appear: it may be the product being viewed, out of stock (with Hide out-of-stock products), already bought, in an excluded category or tag, hidden or password-protected, or already in the cart (cart block).

For developers: filters vfw_rvp_product_ids, vfw_rvp_query_args, vfw_rvp_product_html, vfw_rvp_wrapper_html, vfw_rvp_display_settings, vfw_rvp_auto_settings, vfw_rvp_auto_product_hook, vfw_rvp_cookie_lifetime, vfw_rvp_max_products, vfw_rvp_should_track, vfw_rvp_ajax_response; actions vfw_rvp_before_display, vfw_rvp_after_display, vfw_rvp_product_viewed, vfw_rvp_history_cleared.

Uninstall

Deactivating the plugin keeps all data. To remove it, deactivate and delete it on the Plugins page. The daily cleanup task and the license key and license status of this plugin are always removed. Settings, the customer history table, the widget settings and the logs are removed only if Delete all data when the plugin is deleted was on. Otherwise they stay for a later re-install. Guest cookies expire in the visitors' browsers.

Elementor and WPBakery are trademarks of their respective owners. This plugin is not affiliated with or endorsed by them.

Bug Report

Thank you for helping us improve. We carefully review every report, but we do not reply to them individually. If your report leads to a change, it will be listed in the product changelog together with the report number. To discuss something in detail, please open a support ticket.

Slide to fit the puzzle