This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Google Code for Remarketing Tag --> | |
<!-------------------------------------------------- | |
Remarketing tags may not be associated with personally identifiable information or placed on pages related to sensitive categories. See more information and instructions on how to setup the tag on: http://google.com/ads/remarketingsetup | |
---------------------------------------------------> | |
{% assign prodid = '' %} | |
{% assign value = '' %} | |
{% if template contains 'index' %} | |
{% assign pagetype = 'home' %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% section 'slideshow-landing' %} | |
{% section 'slideshow-landing-mobile' %} | |
{% section 'featured-content-landing' %} | |
{% section 'mobile_extras' %} | |
{% section 'tiled-images-landing' %} | |
{% section 'featured-collection-landing' %} | |
{% section 'tiled-images-landing-2' %} | |
{% section 'featured-collection-landing-2' %} | |
{% section 'tiled-images-landing-3' %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if blog.next_article %} | |
<b>{{ 'blogs.article.newer_post' | t | link_to: blog.next_article }}</b><span> | </span> | |
{% endif %} | |
<b>{{ 'All Articles' | link_to: blog.url }}</b> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% comment %} | |
Here we loop through a blog and use modulo to case odd/even. | |
Dead simple. | |
{% endcomment %} | |
{% for article in blog.articles %} | |
{% assign mod = forloop.index | modulo: 2 %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Turns out you can construct the URL like this to autofill the fields: | |
checkoutUrl = variant.checkoutUrl() | |
checkoutUrl += "&checkout[email]=#{email}" + | |
"&checkout[billing_address][first_name]=#{firstName}" + | |
"&checkout[billing_address][last_name]=#{lastName}" + | |
"&checkout[billing_address][address1]=#{address}" + | |
"&checkout[billing_address][city]=#{city}" + | |
"&checkout[billing_address][country]=#{country}" + | |
"&checkout[billing_address][zip]=#{postalCode}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% comment %}Tag filters{% endcomment %} | |
{% comment %}https://help.shopify.com/themes/customization/collections/filtering-a-collection-with-multiple-tag-drop-down{% endcomment %} | |
{% comment %}Modified so they can be captured in theme options.{% endcomment %} | |
{% comment %}first grab and assign some stuff{% endcomment %} | |
{% capture tags_list %}{{ section.settings.tags_list | prepend: "'," | append: "'" }}{% endcapture %} | |
{% if collection.url.size == 0 %} | |
{% assign collection_url = '/collections/all' %} | |
{% else %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// useful example | |
if ($(window).width() < 1024) { | |
$( ".header__item-language" ).insertBefore( "#lang_inject_mobile" ); | |
} | |
$( window ).resize(function() { | |
// position the lang picker when resizing | |
if ($(window).width() < 1024) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% capture current %}{% cycle 1, 2, 3, 4, 5, 6 %}{% endcapture %} | |
{{ 'collection-' | append: current | placeholder_svg_tag: 'placeholder-svg' }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign counter = 0 %} | |
{% for something in somethings %} | |
{% assign counter = counter | plus: 1 %} | |
{% endfor %} | |
{{ counter }} |