Download Count for WooCommerce

Description

Displays the number of products downloaded by customers.

Products

  • The download count is displayed below the price of the product.
  • The count is the total number of products downloaded.

Admin panel for products

  • The download count is displayed in the “Downloads” column of the “All products” page in the admin page.
  • The count is the total number of products downloaded.

Admin panel for orders

  • The download count is displayed in the “Products : Downloads” column of the “Orders” page in the admin page.
  • The count will be narrowed down by the product id and order id.

Option

  • There is an option to “Displayed on the administration screen only”, which can be set from the management screen.

Filter

  • Provide a filter to download count html for product.

Filter sample

  • Modifies the HTML for All Products.
/** ==================================================
 * Download Count for WooCommerce
 *
 * download_count_woo
 * @param string $html  html.
 * @param int    $count  count.
 */
function download_countproduct( $html, $count ) {

    $html = '<br /><span style="color: green;">' . $count . ' ' . __( 'Downloads', 'woocommerce' ) . '</span>';

    return $html;

}
add_filter( 'download_count_woo', 'download_countproduct', 10, 2 );
  • Modifies the HTML for Product ID 331.
/** ==================================================
 * Download Count for WooCommerce
 *
 * download_count_woo_
 * @param string $html  html.
 * @param int    $count  count.
 */
function download_countproduct_331( $html, $count ) {

    $html = '<br /><span style="color: red;">' . $count . ' ' . __( 'Downloads', 'woocommerce' ) . '</span>';

    return $html;

}
add_filter( 'download_count_woo_331', 'download_countproduct_331', 10, 2 );

Screenshots

  • Products
  • Admin panel for products
  • Admin panel for orders
  • Management screen

Installation

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

FAQ

none

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Download Count for WooCommerce” is open source software. The following people have contributed to this plugin.

Contributors

“Download Count for WooCommerce” has been translated into 4 locales. Thank you to the translators for their contributions.

Translate “Download Count for WooCommerce” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.08

Improved the list table in the admin page.

1.07

Fixed display problem in the admin panel.

1.06

Fixed problem of download count for orders page.
Changed text of dropdown list for sort by product page.
Added customers download count list to management screen.

1.05

Added support for sorting by the number of downloads.

1.04

Added downloads column for admin product page.

1.03

Added management screen.

1.02

Change readme.txt.

1.01

Added filter for all products.

1.00

Initial release.