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 description_parts = product.description | split: '<!-- split -->' %} | |
Amount of parts: {{ description_parts.size }} | |
Index of last part: {% assign index_last = description_parts.size | minus: 1 %} | |
First part: {{ description_parts.first }} | |
First part: {{ description_parts[0] }} | |
Second part: {{ description_parts[1] }} | |
Third part: {{ description_parts[2] }} | |
Fourth part: {{ description_parts[3] }} | |
Last part: {{ description_parts.last }} | |
Last part: {{ description_parts[index_last] }} |
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 option_titles %}Color,color,Colour,colour{% endcapture %} | |
{% assign option_titles = option_titles | split:',' %} | |
{% for option in product.options %} | |
{% if option_titles contains option %} | |
{% capture option_index %}option{{ forloop.index }}{% endcapture %} | |
{% assign option_values = product.variants | map: option_index | uniq %} | |
{% if option_values.size != 1 %} | |
{% for opt in option_values %} |
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
// The below DNS records will allow a user to have a Shopify store as well as pricate email hosting via Shopped.email | |
// These are the main records required - you may also need other. | |
// points your store and www version to Shopify. | |
www CNAME: shops.myshopify.com | |
@ A record: 23.227.38.32 | |
MX record: mx.yourstorename.com.cust.hostedemail.com |
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 section.settings.show_reviews_slider %} | |
<div class="review_wrapper"> | |
<h2 class="center home-section--title">{{ section.settings.reviews_title }}</h2> | |
<div data-section-id="{{ section.id }}" id="slick-{{ section.id }}" class="slickslider reviews-responsive{% if section.settings.slideshow_width == 'contained' %} collection-list--container {% endif %}" data-section-type="reviews-slideshow-section"> | |
{% for block in section.blocks %} | |
<div class="brand-slide"> | |
<img src="{{ 'reviews_stars.png' | asset_img_url: 'original' }}" alt="5 star review"> | |
<h4>{{ block.settings.review_title }}</h4> | |
<div class="reviews_copy">{{ block.settings.review_copy }}</div> |
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
The following code will show a percentage discount on sale products. | |
{% if product.compare_at_price_max > product.price %}You save {{ product.compare_at_price_max | minus: product.price | times: 100.0 | divided_by: product.compare_at_price_max | money_without_currency | times: 100 | remove: '.0'}}%{% 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
<div class="desktop-2 tablet-6 mobile-3" id="aside"> | |
<div id="sidebar"> | |
<div class="desc-accordion"> |
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
<div class="desktop-2 tablet-6 mobile-3" id="aside"> | |
<div id="sidebar"> | |
{% comment %} | |
{% if collection.image %} | |
{{ collection.image.src | collection_img_url: 'compact' | img_tag: collection_title }} | |
{% endif %} | |
{% endcomment %} |
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 %} filters by style {% endcomment %} | |
{% assign tags = section.settings.tags_4 | split: ',' %} | |
{% assign show-filter = false %} | |
{% for tag in tags %} | |
{% if collection.all_tags contains tag %} | |
{% assign show-filter = 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
<script type="text/javascript"> | |
jQuery.ajax( { | |
url: '//freegeoip.net/json/', | |
type: 'POST', | |
dataType: 'jsonp', | |
success: function(location) { | |
// If the visitor is browsing from US. | |
if (location.country_code === 'US') { | |
// DO NOTHING for now | |