Skip to content

Latest commit

 

History

History
59 lines (38 loc) · 2.13 KB

readme.md

File metadata and controls

59 lines (38 loc) · 2.13 KB

WooCommerce 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

Changelog

2016.10.26 - version 1.1.0

2015.07.27 - version 1.0.1

  • Misc: WooCommerce 2.4 compatible

2015.04.26 - version 1.0.0

  • Initial Release