Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Invoice language for online stores using Langify app. Used by Sufio for Shopify (http://www.sufio.com/shopify). Read more at http://sufio.com/articles/shopify/create-invoices-from-orders/multiple-languages/
<!-- Invoice language for online stores using Langify app. Used by Sufio for Shopify (http://www.sufio.com/shopify). -->
{% assign language = cart.attributes["language"] %}{% if language == nil %}{% assign language = shop.metafields["languages"]["default"] %}{% endif %}{% assign invoice_language = shop.metafields.languages[language] %}{% if shop.metafields.language_codes[language] %}{% assign invoice_language = shop.metafields.language_codes[language] %}{% endif %}
<div class="invoice-language"><input type="hidden" id="invoice_language" name="attributes[Invoice Language]" value="{{ invoice_language }}"><link itemprop="url" href="http://www.sufio.com/shopify" /></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.