From dd445d8f0984c66a7117bc50d96be09fc4d81dff Mon Sep 17 00:00:00 2001 From: Multidots Date: Tue, 16 Aug 2016 15:47:35 +0530 Subject: [PATCH] Fixes:'File' link on My Accounts->Downloads incorrect for variations --- includes/wc-user-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/wc-user-functions.php b/includes/wc-user-functions.php index f75618de9ab..d094cbfad38 100644 --- a/includes/wc-user-functions.php +++ b/includes/wc-user-functions.php @@ -468,7 +468,7 @@ function wc_get_customer_available_downloads( $customer_id ) { home_url( '/' ) ), 'download_id' => $result->download_id, - 'product_id' => $product_id, + 'product_id' => $_product->id, 'download_name' => $download_name, 'order_id' => $order->id, 'order_key' => $order->order_key,