
內容簡介
總結:MATE Recently Viewed Products 外掛允許您展示最近訪問過的 WooCommerce 產品,即使全頁面快取功能正在運作中。該外掛使用 cookies 儲存訪問過的產品並使用 AJAX 加載顯示,因此與 WP Rocket、W3 Total Cache 等快取外掛完全兼容。您可以使用簡碼或 Gutenberg 區塊在任何地方展示產品,且這兩者均允許您根據每個實例覆蓋全局設置。
問題與答案:
1. MATE Recently Viewed Products 外掛如何追踪產品?
- 外掛使用基於 cookies 的產品追踪。
2. 這個外掛是如何與全頁面快取相容的?
- 通過 AJAX 加載顯示,使其與全頁面快取完全相容。
3. 可以在哪裡使用 [mrvp_recent_products] 簡碼?
- 您可以在任何地方使用 [mrvp_recent_products] 簡碼。
4. MATE Recently Viewed Products 區塊包含哪些設置項目?
- 區塊包含標題、產品數量、顯示產品圖像、顯示價格、顯示摘要、載入時顯示旋轉器、顯示區塊標題等設置項目。
5. 每個區塊實例能否覆蓋全局設置?
- 是的,每個區塊實例都可以覆蓋全局設置。
外掛標籤
開發者團隊
② 後台搜尋「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.
