FROM CACHE - en_header

Need Help with Additional Script Checkout Status Page

New Member
3 0 0

I am trying to add an additional script to add a message on the checkout status page when certain items are purchased. I have tried using the following script in the additional scripts box without success. I hope someone can help.I am using Shopify Basic.

I want to have the message diplayed for three different named items.

{% for line in checkout.line_items %}
// DEBUG looking at {{ line.title }}
{% if line.title == 'Itemname' %}
'<p>message here</p>'
{% endif %}
{% endfor %}

Replies 3 (3)
New Member
3 0 0
New Member
3 0 0

Still looking for help

Shopify Staff
Shopify Staff
1295 206 277

Hi @glitterherz 

Thank you for reaching out to our community forums for help with customizing your checkout status page. I understand you want to add a customized message when customer buy certain products on your store. 

At this time, stores on the standard Shopify plans are not able to access the "Checkout" or "Shop" liquid content on your store. This is to help maintain the security of the checkout for yourself and your customers. The additional scripts field is restricted to allowing Google Analytics scripts only and can't be used for customization. You can learn a bit more about this in our Help Center.

You may be able to instead customize the order confirmation email to include the optional message instead of the thank you page at the checkout. If you can share a bit more of your desired end goal I'd be happy to look into that for you.\



Shay | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog