WordPress.org

Plugin Directory

MATE Recently Viewed Products – Cache Compatible for WooCommerce

MATE Recently Viewed Products – Cache Compatible for WooCommerce

外掛說明

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.

螢幕擷圖

適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

  • MATE Recently Viewed Products

安裝方式

  1. Upload the plugin folder to /wp-content/plugins/
  2. Activate the plugin via WP Admin > Plugins
  3. Go to Settings > MATE – Recently Viewed Products to configure global defaults
  4. Use the [mrvp_recent_products] shortcode or insert the MATE Recently Viewed Products block in the block editor

常見問題集

Is it Free?

Yes. This plugin is free, all the features are included in the free version, it doesn’t require a pro subscription or membership.

Does it work with caching plugins?

Yes. Since product lists are loaded via AJAX using a cookie, this plugin works even when full-page caching is enabled.

Can I use it multiple times on the same page?

Yes! Each instance will load and behave independently with its own settings.

Where are the products stored?

They’re stored in a browser cookie (mrvp_recently_viewed) and loaded dynamically using JavaScript.

使用者評論

2026 年 5 月 26 日
Thank you author for this amazing app! If you’re using WPRocket and the images over 5 aren’t showing up, add mrvp_recent_products to your exclusion list for delay javascript settings.
2025 年 6 月 4 日
It was super easy to set up and it worked perfectly with WP Rocket and W3 Total Cache. Thank you so much for the great work on this one. With the current list view option, I’d love to see an option to display the products in a slider or carousal layout in future updates. Overall, I’m really impressed with the plugin, and highly recommend it!
閱讀全部 2 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈MATE Recently Viewed Products – Cache Compatible for WooCommerce〉的開發相關工作。

參與者

〈MATE Recently Viewed Products – Cache Compatible for WooCommerce〉外掛目前已有 2 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈MATE Recently Viewed Products – Cache Compatible for WooCommerce〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.4

  • Corrected an issue that prevented displaying the widget in the single product pages.

1.0.3

  • Changed the tracking logic so the products can be tracked even on pages where the widget is not present

1.0.2

  • Added a fix to check if is_product() is defined, to avoid an error if WooCommerce is not installed

1.0.1

  • Moved inline JavaScript and CSS to properly enqueued files
  • Improved WordPress.org compliance for plugin review
  • Added direct access protection to PHP files

1.0.0

Initial release: includes a shortcode, a Gutenberg block, and a global settings page.