How Do I Embed An Article Into An Email Template

bellaguy
Visitor
1 0 1

I'm looking to embed an article with information about our products in the Order Confirmation email template. How would this be done?

Replies 2 (2)

PaulNewton
Shopify Partner
6339 580 1350

The are the variables notifications are documented to have access to:

https://help.shopify.com/en/manual/orders/notifications/email-variables 

 

For unlist objects you can try and see if you can access objects through the global variable objects

https://shopify.dev/api/liquid/objects/articles 

 

If not you will basically need to append the article content to the order either in a cart-attribute, or possibly by chaining through to product and then it's metafield that has a reference to a resource like a page, or rich text containing the product info.

https://shopify.dev/api/liquid/objects/line_item#line_item-product 

 

i.e. inside a line items forloop  {{ line_item.product.metafields.key.name.value }} , or {{ line_item.product.metafields.key.name.value.content }}

 

 

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org


soleseriouss
Trailblazer
316 10 38

You can embed HTML in email with the 'Insert as Text' option. Select 'Insert' > Attach File > Select the htm. file > Click on 'Insert' dropdown bar > Select 'Insert as Text'.

 

hope this helps!

Online Sneaker Store - Soleseriouss