WooCommerce Bulk Order Product Count

Description

For easy inventory gathering, generate a document with the quantity of each individual product in a neat PDF format.

How to use
On the WooCommerce Orders page, check each order you want to export the product count for, and then on the Bulk Actions drop down, select Orders Product Count and press Apply.

A PDF document will then be generated with your orders product count.

Requirements
WooCommerce 2.0 or later
WordPress 3.5 or later

Screenshots

  • Bulk Action dropdown to export product count
  • View of an example exported product count PDF

Installation

  1. Upload woocommerce-order-product-count to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

FAQ

How do I use the plugin?

On the WooCommerce Orders page, check each order you want to export the product count for, and then on the Bulk Actions drop down, select Orders Product Count and press Apply.

A PDF document will then be generated with your orders product count.

How do I add a custom column to the exported PDF?

Here is an example on how to display the product price in the PDF. Add the following to your theme functions.php file:

function wcopcpdf_columns( $columns ) {
    // Remove the thumbnail column
    unset( $columns['thumbnail'] );

    // Add a column for product price
    $columns['price'] = array(
        'label' => 'Price',
        'size'  => '15%',
        'callback' => 'wcopcpdf_column_price' // Callback uses the function named below
    );

    return $columns;
}
add_filter( 'wc_order_product_count_columns', 'wcopcpdf_columns' );

if( ! function_exists( 'wcopcpdf_column_price' ) ) {
    /**
     * Callback to display the product price
     *     
     * @param int $product_id
     * @param int $quantity
     * @param array $orders
     */
    function wcopcpdf_column_price( $product_id, $quantity, $orders ) {
        if( ! isset( $quantity ) || empty( $quantity ) )
            return false;

        $product = wc_get_product( $product_id );

        if( $product->id ) {
            return wc_price( $product->get_price() );
        }
        return false;   
    }
}

Reviews

Doesn't work for me

1. After selecting some orders to export and applying ‘Orders Product Count’ action to them I get redirected to the page
https://mysite.com/wp-admin/admin.php?_wpnonce=01c246a0a9&weo_export=woocommerce-export-orders&posts=997,996
that just says
TCPDF ERROR: Some data has already been output, can’t send PDF file

Maybe it’s because there are non-latin chars everywhere?

2. A guy whom I asked to try that plugin – said it worked for him, but it turned out that this plugin doesn’t show variations.

3. Judging by other topics dedicated to this plugin – it also loses some items from the list.

4. The plugin author doesn’t respond to topics created here.

Read all 2 reviews

Contributors & Developers

“WooCommerce Bulk Order Product Count” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0

  • Initial plugin state

1.1

  • Added support for variations
  • Added thumbnails

1.2

  • Added support for WooCommerce 2.6

1.3

  • Rewrite plugin to make it more extensible
  • Added several hooks for developers to modify, including modifying the columns displayed in the PDF