Magento 2 Transfer Ordered Downloadable Product from One Customer to Another

As e-commerce merchants sometimes we got called from customer to transfer their purchased downloadable products from one account to another account and unfortunately, there is no way to do this in native Magento. As Magento 2 developer we got the same requirements like one customer purchased a downloadable product from the Magento 2 website from their email ID and that customer no longer works with that company and their email ID also no more exist, so that company manager contact us to transfer that downloadable product link to another active customer account and we did in Magento directly updating the customer ID from the database.

How to transfer the purchased downloadable link from one customer to another customer account in Magento 2

Follow below steps to update the purchased link from one customer to another directly from the database in Magento 2

Step 1: Open “downloadable_link_purchased” table of your Magento 2 website.

Step 2: Find the order_id for which you want to update the customer_id

Step 3: Then update the “customer_id” filed for that corresponding order_id

That’s it. Once you are done with the above steps you can see the downloadable product link to new customer account.

You should also update the actual order data like customer email, customer name, customer ID etc for that order. To do so you can follow this below blog post.

How to update order email ID in Magento 2