• Resolved gaetgodi

    (@gaetgodi)


    In my system it is possible for customers to order the same product, multiple times. This leads to the same product appearing more than once in the list of available downloads. The following removes the duplicates:
    The function for this is in woocommerce classes, class-wc-customer.php
    need to edit 588 public function get_downloadable_products ()
    added “group by product_id”
    $results = $wpdb->get_results ( $wpdb ->prepare( "SELECT * FROM ".$wpdb-> prefix."woocommerce_downloadable_product_permissions WHERE user_id = '%s' group by product_id ORDER BY order_id, product_id, download_id", get_current_user_id()) );

    https://www.ads-software.com/extend/plugins/woocommerce-compare-products/

  • The topic ‘under my account make a list of unique available downloads’ is closed to new replies.