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

Hailey
Hailey October 05, 2018

Share:

The customers can buy a particular product directly by downloading it such as a digital product. When you sell the particular product, you must know about every issue around providing the customers the link to download it.

Shopify allows you to add the link of the product into the order status page. However, you just need the link is shown when the particular product is in the order. Hence, you should know how to show content based on an order for a particular product so that only when the customers want to order the digital products, the link would be shown. Here is the detailed guide for you to follow.

Related Posts:

How to show content based on an order for a particular product

Step 1: Go to Checkout

After logging in your Shopify account, click on Setting which is at the bottom of the admin page. Then, choose Checkout.

how to show content based on an order for a particular product

Step 2: Go to Additional scripts

To view the Order processing section, you need to scroll down. Four options are shown up. Look at the last option called Additional scripts. Make sure to tap on it.

how to show content based on an order for a particular product

Step 3: Copy the code

To copy the following code, you can do it in two ways. The first way is using Ctrl + C. The other way is using right click and taping on Copy.


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

Step 4: Show content based on an order

After copying the script, paste it into the Additional scripts text box.

how to show content based on an order for a particular product

Step 5: Click Save

Finally, make sure you’ve done successfully by clicking Save button.

how to show content based on an order for a particular product

To show content based on an order for a particular product on Iphone (Click here)

  • Step 1: Click Setting
    From your Shopify app, click Store. In the Store section, choose Setting.

how to show content based on an order for a particular product

  • Step 2: Go to the Checkout section
    Make sure that you select Checkout in the Store setting field.

how to show content based on an order for a particular product

  • Step 3: Find the Additional scripts
    You can find the Order processing section by scrolling down. Find out the Additional scripts textbox which is the last option in the four ones. Then, tap on it.

how to show content based on an order for a particular product

  • Step 4: Copy the code
    Copy the below by selecting the entire code and taping on Copy.

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

  • Step 5: Paste the code
    After copying the code, make sure to paste it in the Additional scripts text box.

how to show content based on an order for a particular product

  • Step 6: Click Save
    Scroll down and make sure to select Save after you’ve done.

how to show content based on an order for a particular product

To show content based on an order for a particular product on Android (Click here)

  • Step 1: Click Setting
    First of all, log in your account in the app. Go to Store. Choose Setting in the Store section.

  • Step 2: Go to the Checkout section
    Select Checkout in the Store setting field.

  • Step 3: Find the Additional scripts
    Scroll down and look at the Order processing field. Afterward, you will see four options in it. Find out the Additional scripts and click on the text box.

  • Step 4: Copy the code
    In this step, make sure to copy the following code.


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

  • Step 5: Paste the code
    Paste the code you’ve copied into the Additional scripts section.

  • Step 6: Save
    Select Save to make sure that you’ve followed this guide successfully.

Summary

After following this post about how to show content based on an order for a particular product, you will do it effectively. From now on, only when the particular product is in the order, the link will be shown in the order status page for you to view. To show more products which the customers interested in, especially the nearby location, you should visit the writing about how to show content based on customers’ locations.

Orders

Shopify Order API: Test Shopify orders with REST Admin API Change Order Number in Shopify Delete abandoned checkouts on Shopify Add a Tracking Number Refund an Entire Order Resend Email About Order to Customer View Order Status Page of an Order Find or Complete an Existing Draft Order Refund Order Fulfill Orders For Multiple Locations Export Orders To A CSV File Archive Fulfilled Order Add or Remove Taxes Add or Remove Customer Fulfill Part of Order Manually Create Draft Order Apply Discount to a Specific Item Add Tag to Order Add Products to a Draft Order View Marketing Activity Reports Enable Automatic Abandoned Checkout Recovery Emails Email Customer Link to their Abandoned Checkout Manually Cancel Order View the Fraud Analysis For an Order View Order's Conversion Summary Review an Order's Transaction History Print Order Delete an Order View Order Use Bulk Actions with Filter Sort Orders List Save Filter or Search Refund Part of an Order Fulfill Many Orders At Once Manually Capture Single Payment Manually Cancel Fulfillment Fulfill Orders Manually Show Content Based on Shipping Method Translate Order Status Page Show Content Based on Customer's Locations Enable Push Notifications Attach an Order Tag Add an Opt-In for Order Updates View the Status Page for One of your Orders Show Content Based On an Order for A Particular Product Run Scripts Only on the First Visit on Shopify Manually Add the Order Status URL to your Email Templates Check if Email Templates have been Customized View an Order's Timeline Edit Customer Information


Hailey
Hailey
I'm a detail-oriented, honest and hard-working of Shopify Expert, ready to work with you to find solutions to help you start your business or grow it. We offer fast deliveries without compromising quality. Fast and effective!
Recommend for you
Image Description
SEO Suite [FREE]

Auto-optimize website elements and structure in one-click.

Learn more
proofo
Proofo - Social Proof [FREE]

Use Social proof to boost sales

Learn more
Image Description
Size Chart [FREE]

Stunning size guide for great shopping experience

Learn more
Image Description
Free Shipping Bar [FREE]

Increase customers’ shopping cart size with free shipping offer

Learn more

Comments for Show Content Based On an Order for A Particular Product



People also searched for

Subscribe

Stay in the know

Get special offers on the latest news from AVADA.

40k subscribers has been joined!

Earn $10 in reward now!

comment
iphone
go up