| 开发者 |
Sales Counter For WooCommerce
themepoints |
|---|---|
| 更新时间 | 2026年11月2日 15:24 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[sales_counter_category] and [sales_counter_total] shortcodes, for any time period, using the built-in shortcode generator.[scw_top_sellers] shortcode that show your best sellers as a grid, a list or a swipeable carousel, with the number sold. Use them on your home page, landing pages, blog posts or an empty cart.[sales_counter] shortcode to place a counter anywhere, including in page builders such as Elementor.scw_counted_statuses), to hide a counter (scw_should_display), to change the number or text before it is shown (scw_display_data) and to add items to the counter box (scw_chips).
For each product it shows the lifetime units sold figure that WooCommerce keeps. You choose where it appears, what it says and how it looks. It updates as new orders come in.
The dashboard, best-selling sort and Top Sellers list count orders with the status Processing or Completed. Cancelled, failed and refunded orders are not counted. Developers can change this with the scw_counted_statuses filter.
No. The free plugin only shows real sales from your store.
Yes. Open Text and visibility and set Show once a product has sold at least to the number you prefer. Below that number the counter is hidden, or replaced by an optional message such as "New arrival".
Yes. Under Text and visibility, edit Counter text and use {count} where the number should appear, for example {count} customers bought this.
Yes. In block themes the counter is added after the price in product templates. You can also add the Sales Counter block anywhere. If you place the block yourself, turn off Show counter for that area so it does not appear twice.
Yes. Use the shortcode [sales_counter id="123" style="single"], or [scw_top_sellers] for a list of best sellers. Leave out id to use the product on the current page.
Yes. The plugin declares compatibility and reads WooCommerce's analytics tables instead of querying orders directly.
The dashboard reads WooCommerce analytics data. Go to WooCommerce > Analytics > Settings and run Import historical data. New orders appear a few minutes after they are placed. Tools and status in the plugin shows whether the analytics tables are available.
Yes. The counter number updates when your cache is cleared, so clear the cache after large sales or shorten the cache lifetime.
Add the Top Sellers block, or paste a shortcode such as [scw_top_sellers limit="4" days="7" layout="grid" columns="4" title="Best sellers this week"]. The Best sellers screen in the plugin has ready-to-copy examples.
Open Best sellers in the plugin and switch on Add best-selling sort options. To make it the default order, go to Appearance > Customize > WooCommerce > Product Catalog and set Default product sorting. Themes that use a Product Collection block have their own sort menu, so the options do not appear there.
No. The plugin reads figures WooCommerce already stores, caches dashboard queries for a few minutes and only loads its admin files on its own settings screen. Its storefront stylesheet loads only on pages where a counter is shown.
No. The free plugin does not use cookies, send data to external services or collect personal data.
Yes. The text domain is sales-counter-for-woocommerce. You can contribute translations at translate.wordpress.org.
Deleting the plugin from the Plugins page removes its settings. Your orders and products are not affected.
Use the support forum for this plugin on WordPress.org. Please include your WordPress, WooCommerce and theme versions, and the information shown under Tools and status in the plugin.