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 product.metafields.accentuate.show_related_custom_products %} | |
<!– ••• custom related products ••• –> | |
{% assign master_product = product %} | |
<section class="border-top section products-section"> |
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 template == 'page' %} | |
{% if page.handle == 'whatever' %} | |
<meta name="robots" content="noindex,follow" /> | |
{% endif %} | |
{% endif %} |
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
//here we have some code for showing when a variant is in stock. | |
{% assign variant = product.variants.first %} | |
{% if product.variants.size == 1%} | |
{% comment %} no variants {% endcomment %} | |
{% if variant.available %} | |
<div class="stock_alert" > | |
<i class="fa fa-check" aria-hidden="true"></i> In Stock |
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 warranty = false %} | |
{% for line in line_items %} | |
{% if line.sku == 'BB-WARRANTY' %} | |
{% assign warranty = true %} | |
{% endif %} | |
{% endfor %} | |
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 %} | |
add assets in head and trigger in footer | |
page.faq needs {% section 'faq' %} | |
below is that section content. | |
{% endcomment %} | |
<div class="ui accordion"> | |
{% for block in section.blocks %} |
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
<code> | |
{% if customer.default_address.country | json == 'United Kingdom' %} | |
{% comment %} | |
Delivery may take up to 7 days in this case so we're doing date + 7 days and assigning it. | |
{% endcomment %} | |
{% assign seconds = 7 | times: 24 | times: 60 | times: 60 %} | |
<script src="https://apis.google.com/js/platform.js?onload=renderOptIn" async defer></script> | |
<script> | |
window.renderOptIn = function() { | |
window.gapi.load('surveyoptin', function() { |
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 %} | |
we need a way to loop through tags to display a different blog template for tagged posts as to the general overview/archive page | |
doesn't seem like there's an easy way to do this but there is. | |
there are tow options: | |
{% endcomment %} | |
{% if current_tags %}...{% else %}...{% endif %} |
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
$(window).on("load resize",function(e){ | |
if ($(window).width() < 800) { | |
alert('event handle called'); | |
} | |
}); |
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
<!-- START OF LATEST BLOG POSTS --> | |
<div class="latest_posts"> | |
<div class="grid"> | |
<div class="widget-header rte center"> | |
<h2>Latest Blog Posts</h2> | |
</div> | |
<div class="latest-blog-posts-wrapper"> | |
{% for article in blogs.news.articles limit: 6 %} | |
{% include 'article_preview', show_author: true %} |