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

+3


source to share


3 answers


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?

+1


source


Confirm customer support answered my question. {{line.variant.barcode}}



+2


source


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.

http://docs.shopify.com/manual/configuration/store-customization/communicating-with-customers/obtain-information/ask-customer-for-more-information

+1


source







All Articles