$customer->id, 'number' => 20, 'offset' => 20 * ( intval( $page ) - 1 ), 'type' => 'sale', 'status__not_in' => array( 'trash', 'refunded', 'abandoned' ), ) ); } else { $orders = array(); } if ( $orders ) : do_action( 'edd_before_download_history' ); ?> get_items_with_bundles() as $key => $item ) : ?> product_name; $price_id = $item->price_id; $download_files = edd_get_download_files( $item->product_id, $price_id ); do_action( 'edd_download_history_row_start', $order->id, $item->product_id ); ?> id, $item->product_id ); ?>
is_deliverable() ) : if ( $download_files ) : foreach ( $download_files as $filekey => $file ) : $download_url = edd_get_download_file_url( $order->payment_key, $order->email, $filekey, $item->product_id, $price_id ); ?> status ) ) ); ?>
id ) ) { $count = edd_count_orders( array( 'customer_id' => $customer->id, 'type' => 'sale', 'status__not_in' => array( 'trash', 'refunded', 'abandoned' ), ) ); echo edd_pagination( array( 'type' => 'download_history', 'total' => ceil( $count / 20 ), // 20 items per page ) ); } ?>