Linux 软件免费装
Banner图

WebSemicolon Recently Viewed Products for WooCommerce – Price Drop & Back in Stock Badges

开发者 saeedamini144
更新时间 2026年10月26日 04:27
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

recently viewed products back in stock recently viewed price drop woocommerce recently viewed

下载

1.0.1 1.0.0

详情介绍:

WebSemicolon Recently Viewed Products for WooCommerce shows every shopper the products they recently viewed in your store, and tells them when something changed since their visit: the price dropped, the product is back in stock, or stock is running low. That gives visitors a concrete reason to return to a product instead of just seeing a list of thumbnails. The history belongs to the visitor and is kept in a cookie in their own browser. Logged-in customers can also have it saved in their account, so it follows them from their phone to their laptop. No data is sent to third parties. Features How it works
  1. A visitor opens a product page. The plugin records the product, together with its price, stock status and the time of the view, in a cookie (up to 10 products, kept for 30 days). For logged-in customers the same list is saved in their account.
  2. On any page that shows the list, the plugin asks the server for the visitor's products, compares each one with how it looked at the time of the visit and builds the layout you chose.
  3. If a product changed in a way worth mentioning, one badge is shown on its card. Badge priority: back in stock, price dropped, out of stock, low stock.
  4. Each product page view is also added to an anonymous per-product counter used by the report.
Settings Open View History in the admin menu to set the default number of products (1 to 10), the section title, the layout, whether to show prices, the "Add to cart" button and the change badges, whether to sync history for logged-in customers, and where to display the list automatically. The Appearance section controls fonts, sizes, columns, corner radius and colors, with a live preview. The count, title, layout, price, "Add to cart" and badge options can be overridden per block or per shortcode.

安装:

  1. Make sure WooCommerce is installed and active.
  2. Upload the plugin folder to /wp-content/plugins/, or install it from the Plugins > Add New screen.
  3. Activate the plugin through the Plugins screen.
  4. Go to View History in the admin menu and choose your settings, then show the list in one of these ways:
  5. Add the Recently Viewed Products block to a page, post or block template.
  6. Add the shortcode [product_view_history_for_woocommerce] to any content or template.
  7. Tick one or more locations under Automatic placement.

升级注意事项:

1.0.1 Adds price drop and back in stock badges, carousel and list layouts, an "Add to cart" button, cross-device history for logged-in customers, a "viewed but not purchased" report, page cache support, a block, automatic placements and appearance settings with a live preview. Fixes the "Show product price" setting not saving. 1.0.0 First release.

常见问题:

Does this work without WooCommerce?

No. WooCommerce must be active.

Does it work with page caching plugins and CDNs?

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).

Does it need JavaScript?

Yes. Recording views and loading the list are done in the browser. Without JavaScript nothing is recorded and nothing is shown.

Can I change the number of products shown?

Yes, from the settings screen (up to 10), from the block sidebar, or with the limit shortcode attribute.

Can I change the colors, fonts and sizes?

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.

Can I hide the product price or the badges?

Yes. Use the settings screen, the block sidebar, or show_price="no" and badges="no" in the shortcode.

When does a badge appear?

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.

Will it show the product I am looking at right now?

No. The current product is excluded from the list on its own page.

Does it work with Elementor and other page builders?

Yes. Use the builder's Shortcode widget with [product_view_history_for_woocommerce], or the block if your builder supports blocks.

The automatic placement does not show on my cart or checkout page.

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.

Does it work on right-to-left sites?

Yes. The layout mirrors automatically and a Persian translation is included.

Does the history follow customers across devices?

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.

How do the carousel and the list layout work?

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.

Does the "Add to cart" button work with AJAX?

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.

What does the "Viewed but not purchased" report show?

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.

Does the live preview use my real products?

No. The preview on the settings page uses sample products so you can judge fonts, sizes and colors without needing any viewing history.

How do I translate it?

The plugin is translation ready (text domain websemicolon-product-view-history-for-woocommerce). A .pot file is included in the languages folder.

更新日志:

1.0.1 1.0.0