You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I setup a virtual / downloadable product with multiple download files. When purchasing the product, after the order is marked as complete the user gets access to all the download files contained within the product.
However when they click on each of the unique download links they all return the same file.
I had a look through the code and it seems the file includes/data-stores/class-wc-customer-download-data-store.php contains a function get_downloads which retrieves all the user downloads.
The download_id is passed to this function as one of the arguments, but it is never included in the database query. So it just returns the first download file.
It seems the following code is missing from this function:
I setup a virtual / downloadable product with multiple download files. When purchasing the product, after the order is marked as complete the user gets access to all the download files contained within the product.
However when they click on each of the unique download links they all return the same file.
I had a look through the code and it seems the file includes/data-stores/class-wc-customer-download-data-store.php contains a function get_downloads which retrieves all the user downloads.
The
download_id
is passed to this function as one of the arguments, but it is never included in the database query. So it just returns the first download file.It seems the following code is missing from this function:
When I add this I get the correct download for each download link.
The text was updated successfully, but these errors were encountered: