WooCommerce Display Order Count WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA
Displays the total number of completed orders in the shop. Can also accept other statuses to display a total for completed + pending statuses, and more.
Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/bekarice/woocommerce-display-order-count/releases/download/1.1.0/woocommerce-display-order-count.zipWooCommerce Display Order Count
This plugin will display the total number of completed orders on your site wherever the [wc_order_count] shortcode is used. This is helpful for showing trust badges like, "13,124 orders already shipped!".
You can optionally display a total that includes orders with another status using the optional status attribute.
For example, using [wc_order_count status="completed,processing"] will display a total that includes both processing and completed orders. You can use a comma-separated list of all order statuses you'd like to include.
Here's a list of the core statuses and how you should use them in the "status" attribute:
completed
processing
on-hold
pending
cancelled
refunded
failed
Though custom statuses could be used as well.
There are no settings. The plugin only adds the ability to use this shortcode.
Requirements
- WordPress 4.0 or newer
- WooCommerce 2.2 or newer
Frequently Asked Questions
Why does this show the shortcode text instead of the count?
Chances are you're using this in a text widget -- your site needs to have this included in the functions.php or custom plugin to do so.
add_filter( 'widget_text', 'do_shortcode' );
Do I have to include completed orders?
Nope, the status attribute can accept only the order statuses you'd like to include in your total.
More Details
- See the product page for full details.
- Make a donation to help fund more free plugins.
- View more of SkyVerge's free WooCommerce extensions
- View all SkyVerge WooCommerce extensions
Changelog
2016.10.26 - version 1.1.0
- Misc: format order counts with a thousands separator
- Add support for the GitHub updater plugin
2015.07.27 - version 1.0.1
- Misc: WooCommerce 2.4 compatible
2015.04.26 - version 1.0.0
- Initial Release
Releases
3 releases. Each count is every asset in that release; expand a row for the breakdown.