Ad

How Do I Use Shopify To Sell Third Party Product Which Need To Be Shown In The Customers Account Page

- 1 answer

Some of the products we sell in our Shopify shop are third party downloads, which we resell.

So when a customer buys such a product in our shop, it activate a webhook once the order is paid. This webhook then order the product from the third party. This third party gives us a download link which we then email to the customer.

This works fine, but we would also like to show the download link at the customers account page, so they can log in, and then re-download any file they have previously bought. And here is the problem: How do we store the download links for each product, in a way we can show at the users account page?

The obvious solution would be to store the unique download link in the orders line_item but that is not supported by shopify(How do I update properties on a shopify line_item).

Ad

Answer

I'd use a meta field on the order. You could create a set of metafields from the order webhook to handle all the download links and then modify your theme to show them.

Ad
source: stackoverflow.com
Ad