Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Pippin Williamson

    (@mordauk)

    Hi there!

    At this time we do not offer an option to do that so showing that number will require a custom code snippet. I would recommend hiring a developer to build that for you: https://easydigitaldownloads.com/consultants

    Thread Starter apurbajnu

    (@apurbajnu)

    thanks …..this snippet worked for me
    function total_download() {
    global $wpdb;
    $total_download=0;
    $meta_key = ‘_edd_download_sales’;//set this to your custom field meta key
    $alldownload=$wpdb->get_col($wpdb->prepare(“SELECT meta_value FROM $wpdb->postmeta WHERE meta_key = %s”, $meta_key));
    foreach ($alldownload as $download) {
    $total_download = $total_download + $download;
    }
    echo ‘Total download are ‘.$total_download;
    }

    Plugin Contributor Pippin Williamson

    (@mordauk)

    Great!

    Hello apurbajnu,

    Can you please tell me how to use this code and where to put this? Because I want to show my store total download stats on widget.

    Can you please tell me where to put this code and how to show the download counts for all product in total on a widget?

    Thanks in advance ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Total download number of all product .’ is closed to new replies.