Arock Wordpress + WooCommerce Toolkit
20 small WordPress and WooCommerce tools in one lightweight plugin. Switch each tool on or off from one page; only the tools you turn on run.
Show your total WooCommerce product count anywhere with one shortcode. Filter by category, and leave out hidden products if you like.
Adds a single, no-configuration shortcode — [wc_product_count] — that outputs the live number of products in your store. It updates as you add or remove products, so copy like “65+ designs and counting” never goes stale.
[wc_product_count category="apparel,poster"] — without double-counting.status="draft" or status="any" (default is publish).1,250) that inherits the surrounding typography..zip you downloaded and click Install Now.[wc_product_count] into any page, post, widget or page-builder text block — e.g. We have [wc_product_count] designs in the shop.category="your-slug" (slugs are under Products → Categories) or status="any".
Need a number for one category only? Use [wc_product_count category="your-slug"]. Add exclude_hidden="yes" to leave out hidden products, or status="draft" / status="any" to count by status.Under Products → Categories in your WordPress admin. Separate several slugs with commas.
Style the text around it. The shortcode outputs a bare number, so placing it inside a heading turns it into a big stat counter.
No. A variable product counts once, no matter how many sizes or colors it has.
The shortcode quietly outputs nothing — no errors on your pages.
Yes — GPL-2.0, free forever, no upsells inside the plugin.
Yes. Add exclude_hidden="yes" to the shortcode. Products with catalog visibility set to Hidden won't be counted. Products set to "Shop only" or "Search results only" are still counted, because WooCommerce doesn't treat those as hidden.
I customize plugins and build new ones from scratch — same care, made for your site.
20 small WordPress and WooCommerce tools in one lightweight plugin. Switch each tool on or off from one page; only the tools you turn on run.
Skip the cart: "Add to cart" becomes "Checkout" and takes customers straight to checkout. Ideal for one-product stores and quick buys.
When a shopper adds a product to the cart, a popup offers that product's cross-sells with a quantity box and an "Add to order" button. Uses WooCommerce's own Cross-sells field.
Comments 2
Every comment is reviewed before it appears.
I like your plugin. Just missing 1 feature: count products in a category excluding hidden products ... Probably just an extra line in your code, but I haven't got a clue as I am no programmer :-)
Hey Michel, thanks for the suggestion! I updated the plugin and added many shortcode example
In v1.2 you now have visibly controls: Excluding hidden products (new in 1.1)
[wc_product_count exclude_hidden="yes"] counts all published products except hidden ones.
[wc_product_count category="apparel" exclude_hidden="yes"] does the same for one category.