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_related_products == true %} | |
<hr> | |
<div class="product-template__container page-width" itemscope itemtype="http://schema.org/Product" id="ProductSection-{{ section.id }}" data-section-id="{{ section.id }}" data-section-type="product" data-enable-history-state="true"> | |
{% comment %} | |
Number of related items per row, | |
and number of rows. | |
{% endcomment %} | |
{% assign number_of_related_products_per_row = section.settings.related_grid_num %} |
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
#!/bin/bash | |
set -e | |
set -o pipefail | |
log_title() { | |
local code="\033[" | |
local color="${code}1;34m" | |
[ -z "$text" ] && local text="$color$1${code}0m" | |
echo -e "\n$text" | |
} |
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 data-section-id="{{ section.id }}" id="mysection_{{ section.id }}" class="richtext-custom-section contain-full-width no-padding "> | |
{% for block in section.blocks %} | |
{% capture thecycle %}{% cycle 'odd', 'even' %}{% endcapture %} | |
{% if thecycle == 'odd' %} | |
<div class="odd_block"> | |
<div class="one-half-custom odd_img "> | |
{% if block.settings.custom_image %} | |
<img src="{{ block.settings.custom_image | img_url: '2048x' }}" /> | |
{%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
{% capture option_titles %}Color,color,Colour,colour{% endcapture %} | |
<div class="color_swatches_collection"> | |
{% 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 != 0 %} | |
{% for opt in option_values %} | |
<div style="background-color:{{ opt | downcase }};" class="option_circles"></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
https://store.com/?preview_theme_id= | |
https://store.com/?preview_theme_id= |
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 -%} | |
colors done by product type and metafields | |
{%- endcomment -%} | |
{%- capture the_type -%}{{ product.type }}{%- endcapture -%} | |
<div class="swatch_wrap"> | |
{% for p in collections.all.products %} | |
{% if p.type == the_type %} |
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 %} will output sizes if they are first option{% comment %} | |
<ul class="product-sizes"> | |
{% for variant in product.variants %} | |
{% if variant.available %} | |
<li>{{ variant.option1 }}</li> | |
{% else %} | |
<li class="disable">{{ variant.option1 }}</li> | |
{% 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
{% if article.image.size > 0 %} | |
# show featured image | |
{% else %} | |
{% if article.content contains "<img" %} | |
{% assign src = article.content | split: 'src="' %} | |
{% assign src = src[1] | split: '"' | first %} | |
<img src="{{ src }}" alt="{{ article.title }}"> | |
{% 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
// make pretty selects | |
$(document).ready(function() { | |
$('select').niceSelect(); | |
}); | |
// before any changes | |
$( document ).ready(function() { |