Skip to content

Instantly share code, notes, and snippets.

View dono-shopify's full-sized avatar

Brian Donohue dono-shopify

View GitHub Profile
@dono-shopify
dono-shopify / 0_reuse_code.js
Last active August 29, 2015 14:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@dono-shopify
dono-shopify / multilang.liquid
Created April 27, 2015 15:42
Multilanguage and Multicurrency
<!-- This is an example of automatic currency switching based on IP as well as language selection using Langify and redirects.
All domains should be set up in Langify with their appropriate languages. I'd recommend placing this code in its own snippet
and including it near the </body> tag in your theme.liquid
Dependencies:
- currencies.js (https://github.com/carolineschnapp/currencies)
- Langify (https://apps.shopify.com/langify)
- A Shopify Store (well, should work anywhere, but only tested on Shopify)
-->
@dono-shopify
dono-shopify / multi-lang.liquid
Last active December 17, 2017 00:41
Multiple Languages + Currencies
<!-- This is an example of automatic currency switching based on IP as well as language selection using Langify and redirects.
All domains should be set up in Langify with their appropriate languages. I'd recommend placing this code in its own snippet
and including it near the </body> tag in your theme.liquid
Dependencies:
- currencies.js (https://github.com/carolineschnapp/currencies)
- Langify (https://apps.shopify.com/langify)
- A Shopify Store (well, should work anywhere, but only tested on Shopify)
-->
<ul>
{% for article in blogs.news.articles %}
<li>
<h4>{{ article.title }}</h4>
{{ article.content }}
</li>
{% endfor %}
</ul>