Step 1: Enable Customer Accounts in your Shopify store
a) Go to Your Shopify Checkout settings
b) Find the Customer Accounts Settings section
c) Tick the ‘’Require all customers to log in before checkout’’ box
d) Click Save
Step 2: Add a "My Files/Videos" button to your website for your logged-in customers
In this step, you will learn how to add the ''My Files/Videos'' button to the page where the customer can view all of their past digital purchases. You can do so in two ways; via code, and via the ''Add Block'' feature found in your theme customization. Find both instructions below (some themes don't have the ''Add Block feature, so you'll have to opt out for the code/manual setup):
A) Manual setup (adding the button to the account page)
a) Visit your Shopify themes page
b) Click the Actions button
c) Select Edit Code
d) Select the customers/account.liquid template from the templates folder
e) Paste the following code:
Placement of this code within customers/account.liquid is completely dependent on your Shopify theme and is different for every theme.
<p>
<a href="{% unless routes.root_url == '/' %}{{ routes.root_url }}{% endunless %}/apps/downloads/orders/{{customer.id}}" class="btn button">
My Downloadable Files
</a>
</p>
If you need assistance with the above, just reach out; we're available 24/7 and will be more than happy to help!
B) Via theme customization (adding the button to any page)
a) Go to your Shopify Online Store section, click on Themes and click on Customize
b) Pick any page from the top selector menu
c) Select the Template section on the left-hand side, find the Apps block and click on Add block
c) Select the Digital library link block
d) You can now preview the button in the theme preview, and also customize the button text and alignment per your needs; don't forget to Save once done!
Step 3: (Optional) Add a link to digital goods in the order history page
In this step, you will add a link from the "Order History" page of your store to the page where the customer can view files or videos for that particular order.
This step in not required on pre-integrated themes such as Pipeline as it is already done for you.
Find the instructions below:
a) Visit your Shopify themes page
b) Click the Actions button
c) Select Edit Code
d) Select the customers/order.liquid template
e) Paste the following code:
<p>
<a href="{% unless routes.root_url == '/' %}{{ routes.root_url }}{% endunless %}/apps/downloads/orders/{{customer.id}}" class="btn button">
My Downloadable Files
</a>
</p>
If you need assistance with the above, just reach out; we're available 24/7 and will be more than happy to help!