This file contains hidden or 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 %} | |
if combine_pretext is false, the text before the first <h6> will be shown above all tabs, otherwise added to the first tab | |
{% endcomment %} | |
{% assign combine_pretext = false %} | |
{% assign description = tabbed-description | default: product.description %} | |
{% if description contains "<h6>" %} | |
{% assign tab_heads = '' %} | |
{% assign tab_texts = '' %} | |
{% assign pretext = '' %} |
This file contains hidden or 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
br{ | |
content:' '; | |
} | |
br:after{ | |
content:' '; | |
} |
This file contains hidden or 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
// To get list of themes | |
theme get --list -p=[your-api-password] -s=[your-store.myshopify.com] | |
theme get -l -p=[your-api-password] -s=[your-store.myshopify.com] | |
// To download the theme | |
theme get --password=[your-api-password] --store=[your-store.myshopify.com] --themeid=[your-theme-id] | |
theme get -p=[your-api-password] -s=[your-store.myshopify.com] -t=[your-theme-id] | |
// To watch for changes on host | |
theme watch |
This file contains hidden or 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="some-div"> | |
{% for block in section.blocks %} | |
{% case block.type %} | |
{% when 'image' %} | |
image | |
{% when 'headline' %} | |
headline |
This file contains hidden or 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 %} | |
This is based on getting a product from a block entry in the customiser using the "product" type. | |
all_products[] only allows 20 items so better to get the product info per product asynchronously | |
{% endcomment %} | |
<div class="stub" data-handle="{{ block.settings.image }}"> | |
<a href="/products/{{ block.settings.image }}" target="_blank"> |
This file contains hidden or 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
Method 1: Declare variables right above the snippet: | |
{% assign snippet_variable = ‘this is it’ %} | |
{% assign snippet_variable_two = ‘this is also it’ %} | |
{% include ‘snippet’ %} | |
Method 2: Include variable into include command: | |
{% include ‘snippet’, snippet_variable: ‘this is it’, snippet_variable_two: ‘this is also it’ %} | |
There was a filthy rumour being spread at Unite 2019 that snippets were scheduled to be removed. |
This file contains hidden or 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
{% for field in product.metafields.namespace %} | |
<li>{{ field | first }}: {{ field | last }}</li> | |
{% endfor %} |
This file contains hidden or 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="reviews"> | |
{% assign looxstats = shop.metafields.loox["global_stats"] | split: "," %} | |
{% assign looxstar = looxstats[0] | round %} | |
{% assign looxcount = looxstats[1] | times:100 | money_without_currency | remove: '.00' %} | |
<a href="pages/happy-customers">Reviews (<span class="looxstars">{% for i in (1..looxstar) %}★{% endfor %}</span> {{ looxcount }})</a> | |
</div> <!-- end review --> |
This file contains hidden or 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="announcement-bar"> | |
<p> | |
{% for block in section.blocks %} | |
<span>{{ block.settings.text }}</span>{% if forloop.last != true %}<span class="middot">·</span>{% endif %} | |
{% endfor %} | |
</p> |
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head> | |
<!-- Priority tags. These must come first. --> | |
<meta charset="utf-8"> | |
<meta http-equiv="x-ua-compatible" content="ie=edge; chrome=1"> <!-- Render Chrome if available or using latest version of Internet Explorer (Recommended). --> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> | |
<!-- Document Title --> | |
<title>Page Title</title> | |
<!-- Allows control over where resources are loaded from. Place as early in the document as possible, only applies to content below this tag. --> |