I have set up 2 custom fields for some products in my store. These fields are automatically showing in the cart and in the confirmation page that shows after order completion. I am now trying to get these fields to show in the email confirmation and also in an XML export, but I am not sure how best to do this. I suspect that it may have to be done differently for each, but I could be wrong.
Here is the code I have added to a custom product.liquid file. A majority of the names of fields have been changed for now to prevent personal info being shown.
Custom #:
Image:
Can someone assist me with this?