| 开发者 | saeedamini144 |
|---|---|
| 更新时间 | 2026年10月26日 04:27 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
[product_view_history_for_woocommerce] shortcode for classic editors, page builders and templates./wp-content/plugins/, or install it from the Plugins > Add New screen.[product_view_history_for_woocommerce] to any content or template.No. WooCommerce must be active.
Yes. The list is loaded after the page has loaded, so cached pages work correctly. Make sure admin-ajax.php is not cached by your caching plugin or CDN (it normally is not, because the requests are POST requests).
Yes. Recording views and loading the list are done in the browser. Without JavaScript nothing is recorded and nothing is shown.
Yes, from the settings screen (up to 10), from the block sidebar, or with the limit shortcode attribute.
Yes. Open View History > Appearance to set the font, text sizes, columns, corner radius and all colors. Colors use the WordPress color picker and each one has a "Default" button. If your page cache serves old styling after you save, purge it once.
Yes. Use the settings screen, the block sidebar, or show_price="no" and badges="no" in the shortcode.
A badge appears only for products the visitor has viewed before. "Price dropped" compares the current price with the price the visitor saw; "Back in stock" appears if the product was out of stock when the visitor saw it and is available now. "Out of stock" and "Only N left" reflect the current stock. Visits recorded by older versions of the plugin do not contain price or stock data, so they only get the stock-based badges.
No. The current product is excluded from the list on its own page.
Yes. Use the builder's Shortcode widget with [product_view_history_for_woocommerce], or the block if your builder supports blocks.
The automatic locations rely on the standard WooCommerce template hooks. The block-based Cart and Checkout pages do not fire all of them. Add the Recently Viewed Products block to those pages instead.
Yes. The layout mirrors automatically and a Persian translation is included.
Yes, for logged-in customers. Their history is saved in their account and merged with the cookie of the browser they are using. Guests only have the cookie, so for them the history is per browser. You can turn the account sync off under View History > Sync for logged-in customers.
Choose Layout in the settings, in the block sidebar, or with layout="carousel" / layout="list" in the shortcode. The carousel shows as many products as the "Columns on desktop" setting (3 or fewer on tablets, 2 on phones) and scrolls with touch, trackpad, keyboard or the arrow buttons. The list shows one product per row.
Yes, when AJAX add to cart is enabled in WooCommerce settings (WooCommerce > Settings > Products). Otherwise the button adds the product with a normal page reload. Variable and grouped products show "Select options" and link to the product page.
Under View History > Report you see your most viewed products, the units sold since views started being counted for that product, and the purchases per 100 views. A visitor is counted once per product every 30 minutes, and shop managers are not counted. Use Reset statistics to start counting from zero.
No. The preview on the settings page uses sample products so you can judge fonts, sizes and colors without needing any viewing history.
The plugin is translation ready (text domain websemicolon-product-view-history-for-woocommerce). A .pot file is included in the languages folder.
badges, layout and add_to_cart.SameSite=Lax.