WooCommerce Display Order Count

$0.00

You can view this on GitHub or download it for free.

Download .zip

Plugin Description

This plugin gives you a new shortcode to display the total number of orders placed in your shop. By default the [wc_order_count] shortcode will only display the total number of completed orders in the shop.


Using the Shortcode: woocommerce order count

Using the Shortcode



woocommerce order count display

Displayed to customers


You can also pass a list of statuses into the shortcode to display a total for other statuses. For example, to show the total of all completed and processing orders, we could use:

[wc_order_count status="completed, processing"]


WooCommerce order count: completed + Processing

Adding Multiple Statuses



Displaying totals for multiple statuses woocommerce order count

Displaying totals for multiple statuses


Here’s a list of the core WooCommerce order statuses for reference:

completed
processing
on-hold
pending
cancelled
refunded
failed

You can use these as well as slugs for custom order statuses in the “status” attribute.

Share your thoughts!

Got a quick question or feedback about the plugin? Submit it here!

Proudly Powered by WooCommerce Product Reviews Pro

Let us know what you think...

What others are saying

  1. Maurice

    Question

    Hi.

    Is there a way to filter the order count between dates? I only want to show the 2017 orders.

    Thank you.

    (0) (0)

    Something wrong with this post? Thanks for letting us know. If you can point us in the right direction...

    • izak

      hi there can you add a short code to display per product sold ?”

      function tt_show_product_loop_unitsold() {
      global $product;
      $units_sold = get_post_meta( $product->id, ‘total_sales’, true );

      echo ‘

      ‘ . sprintf( __( ‘Units Sold: %s’, ‘woocommerce’ ), $units_sold ) . ‘

      ‘; //you can change text Units Sold to any text liked Total Downloads
      }

      add_action( ‘woocommerce_single_product_summary’, ‘tt_show_product_loop_unitsold’, 8 );

      found that code but there is no shortcode and also found this code fore same function
      add_action( ‘woocommerce_single_product_summary’, ‘wc_product_sold_count’, 11 );
      function wc_product_sold_count() {
      global $product;
      $units_sold = get_post_meta( $product->id, ‘total_sales’, true );
      echo sprintf( __( ‘woocommerce’ ), $units_sold ) ;
      }

      (0) (0)

      Something wrong with this post? Thanks for letting us know. If you can point us in the right direction...

    • Beka Rice

      Hey Maurice! It would be possible to achieve with the help of a developer, but not something we plan to add to this plugin. Right now, the way we count orders is very simple and uses pre-existing WordPress functions. To limit orders by year would require a preliminary query by date first. You could certainly do this by using this plugin as a starting point, but it’s not as straight-forward as what we’ve put together here.

      (0) (0)

      Something wrong with this post? Thanks for letting us know. If you can point us in the right direction...

  2. Nuclear Ape

    Question

    How can I format the output to include a comma as the thousands separator?

    i.e. 29,745 instead of 29745

    (0) (0)

    Something wrong with this post? Thanks for letting us know. If you can point us in the right direction...

    • Gabriel

      This is great 🙂 Does it work on the order counts of specific products within the shop?

      (0) (0)

      Something wrong with this post? Thanks for letting us know. If you can point us in the right direction...

    • Beka Rice

      Hey Gabriel, I’m afraid it only counts orders by status, not by product. Sorry I don’t have better news for you here!

      (0) (0)

      Something wrong with this post? Thanks for letting us know. If you can point us in the right direction...

    • Nuclear Ape

      Thank you 🙂

      (0) (0)

      Something wrong with this post? Thanks for letting us know. If you can point us in the right direction...

    • Beka Rice

      A good point, forgot to add formatting! I’ve pushed an update, please (1) download the updated plugin, (2) delete the existing one from your site, and (3) re-upload the new zip file. Thanks!

      (0) (0)

      Something wrong with this post? Thanks for letting us know. If you can point us in the right direction...

  3. sreenivas

    Question

    Dear admin, Thanks it working for me. May i know is it works for orders category.

    (0) (0)

    Something wrong with this post? Thanks for letting us know. If you can point us in the right direction...

  4. Jonathan

    Question

    I thought this would let the customers see how many orders they have placed and the number of orders yet to be shipped? But it seems to only show the number of orders for the entire store. I don’t want my customers to have that information.

    (0) (0)

    Something wrong with this post? Thanks for letting us know. If you can point us in the right direction...

    • Beka Rice

      Hi Jonathan, that’s correct, this plugin isn’t intended to be customer-specific. It will show social proof for all orders in your shop:

      This plugin gives you a new shortcode to display the total number of orders placed in your shop.

      You can safely remove the shortcode and deactivation to stop showing the total order count. Cheers!

      (0) (0)

      Something wrong with this post? Thanks for letting us know. If you can point us in the right direction...

×

Login

Register

Continue as a Guest

Don't have an account? Sign Up

Pre-Sales

Have some questions about this plugin? We'd love to help! Fill out this form to ask 🙂
  • Any general information you need? Anything we can clear up? Ask away!
  • At least first name, please!
  • (Otherwise how can we send you our lovingly crafted response?)
  • (Optional) Sometimes helpful to know 🙂