
MATE Recently Viewed Products – Cache Compatible for WooCommerce
by Alfonso Catrón on WordPress.org
Display recently viewed WooCommerce products via AJAX and cookies. Works with caching. Includes a customizable block and shortcode.

Recently viewed products displayed using the block.
MATE Recently Viewed Products lets you show WooCommerce products the customer recently visited — even when full-page caching is active.
It uses cookies to store visited products and loads the display using AJAX, so it’s fully compatible with caching plugins like WP Rocket, W3 Total Cache, and others.
You can display products anywhere using a shortcode or a Gutenberg block. Both the block and shortcode allow you to override global settings on a per-instance basis.
Features
- Cookie-based product tracking
- Fully AJAX-loaded: works with full-page cache
- Gutenberg block and classic shortcode
- Settings page to configure global defaults
- Per-block customization (title, number, image, price, excerpt, spinner)
- Layout-friendly and responsive design
- Works with all WooCommerce themes
Shortcode
You can use the [mrvp_recent_products]
shortcode anywhere. Optional attributes:
[mrvp_recent_products
count=”5″
title=”Recently Viewed”
show_price=”1″
show_excerpt=”0″
show_image=”1″
show_spinner=”1″
show_widgettitle=”1″
]
Block
The MATE Recently Viewed Products block includes these settings:
- Title
- Number of products
- Show product image (checkbox)
- Show price (checkbox)
- Show excerpt (checkbox)
- Show spinner while loading (checkbox)
- Show block title (checkbox)
- Each block instance can override global settings.