Shopify - 14 day free trial + pay only $1 for your first month  GO!
Show Content Based On an Order for A Particular Product on Shopify

Show Content Based On an Order for A Particular Product on Shopify

Last modified: December 2, 2021

FAQ
Shopify

You can easily sell lots of different products from your Shopify store. And customers can buy some products, like digital products, directly on your store and then download them instantly. However, they must know how to do that or any issue that might be surrounding it.

Luckily, Shopify allows you to add the link of a product within the order status page. This allows you to add the downlink to the product for your customer to use or can include other vital information.

For this to happen, you need to learn how to showcase content based on a product within a specific order. This tutorial helps you to learn how to do that. During the example, we will be using a digital product as the example.

Recommended: The 10 Best Shopify Content Protector Apps

# Name Image
Shopify
Shopify
More Info
1
Content Protection by Webyze
Content Protection by Webyze
More Info
2
Content Protection by Buymaxx
Content Protection by Buymaxx
More Info
3
Cozy AntiTheft
Cozy AntiTheft
More Info
4
Shop Shield Pro
Shop Shield Pro
More Info
5
Disable Right Click by NDNAPPS
Disable Right Click by NDNAPPS
More Info
6
Photolock | Anti‑Theft
Photolock | Anti‑Theft
More Info
7
Anti‑Theft Right Click Protect
Anti‑Theft Right Click Protect
More Info
8
ImageLock
ImageLock
More Info
9
LockShop: Disable Right Click
LockShop: Disable Right Click
More Info
10
Unique ‑ Anti Theft A.I
Unique ‑ Anti Theft A.I
More Info
Show More
Click here for more information about The 10 Best Shopify Content Protector Apps.

Step 1 – Login

The first step is to login to your Shopify store using your user credentials.

Step 2 - Checkout

From the Shopify dashboard, click on ‘Settings’ option which is at the bottom of the dashboard. From here, you can then click on the ‘Checkout’ option.

Step 3 – Additional Scripts

You need to then go to the ‘Order Processing’ section. You’ll need to scroll down the page to find this section. Within this area there are four options. The last option should read ‘Additional Scripts’. Click on that option.

Step 4 – Copy The Code

Now you need to copy the code below. If you’re on a mobile device, then you might be best switching to a desktop as this can be fiddling. Copying the code using either Ctrl + C or right clicking and selecting Copy after highlighting the text will both work fine.

<script>
  {% for line in checkout.line_items %}
    <!-- DEBUG looking at {{ line.title }} -->
    {% if line.title == 'Our special downloadable product' %}
      Shopify.Checkout.OrderStatus.addContentBox(
        '</p>
<p>
</p>
<p>Download your special downloadable product! <a href="#">Here!</a></p>
<p>
</p>
<p>'
      )
    {% endif %}
  {% endfor %}
</script>

Once you’re sure that the script has been copied, paste the code into the text box for ‘Additional Scripts’.

Ensure that you’re inserting the right URL and other information into your code. For instance, the ahref value should be that of your download URL.

When you’ve completed that you can click on the ‘Save’ option. This will make the changes live on your site.

Read More

Final Word: Show Content Based On an Order for A Particular Product on Shopify

The advice in this article allows you to showcase specific text for products on your website that a customer has bought. When the customer has made the order, they can go to their order status page and the text will be displayed.

This can help you deliver digital products to your customers or give warnings if certain products take longer than others to be delivered. There are also apps that can help you with digital products, like this digital products app here. This can help you avoid this task and improve your business’ revenue with ease.

Recap:
Got Something To Say?

Your email address will not be published.