Templates to create email templates add barcode (UPC)
Create admin panel (settings> notifications> email templates) it allows you to edit the email sent to my distributor with order information for it like: address, price and SKU to send this customer. I am also trying to add UPC barcode to my email template.
This is the .liquid code for the SKU
(sku: {{ line.sku }})
Here is a link to the variable reference reference, but I can't find one for the barcode, any ideas?
http://docs.shopify.com/manual/settings/notifications/email-variables
source to share
You can save upc to an unused product (eg vendor) field and then output that field to your {{line.vendor}} email template.
If there are no unused fields available, you can save upc in a metaphone and output this metafield to your email template:
{{line.product.metafields.some_namespace.your_key}}
Here is the documentation for metaphiles: metaphiles
Where is upc currently stored?
source to share
So, one option would be to set the cart attribute, which you could then display in the email.
Here's a link to set up the cart attributes, but in your case, you probably want the input to be hidden (since the customer doesn't need to input anything).
It's a bit of a hack, but the alternative is a web cache application to create a UPC and submit it.
source to share