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
# Insomnia Configuration | |
## Run the test query | |
{ | |
shop { | |
id | |
name | |
} | |
} | |
# Query Structure Examples |
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='video-section'> | |
<h2>{{ section.settings.heading }}</h2> | |
{% for block in section.blocks %} | |
{% case block.type %} | |
{% when 'video-stored' %} | |
<div class="stored-video" {{ block.shopify_attributes }}> | |
{{ block.settings.video | media_tag }} | |
</div> | |
{% when 'external-video' %} | |
<div class ="external-video"{{ block.shopify_attributes }}> |
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="video-section"> | |
<h2>{{ section.settings.heading }}</h2> | |
{{ section.settings.video | video_tag }} | |
</div> | |
{% schema %} | |
{ | |
"name": "Video", | |
"settings": [ | |
{ |
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
<html> | |
<head> | |
<script src="https://cdn.shopify.com/s/assets/external/pos_app.js"></script> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
ShopifyPOS.init({ | |
apiKey: "0dc181105f1912f21b5de1a0ae64db37", | |
shopOrigin: "https://CURRENT_LOGGED_IN_SHOP.myshopify.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
<select name="id" id="ProductSelect-{{ section.id }}" class="product-form__variants no-js"> | |
{% for variant in product.variants %} | |
{% if variant.available %} | |
<option {% if variant == product.selected_or_first_available_variant %} selected="selected" {% endif %} value="{{ variant.id }}"> | |
{{ variant.title }} | |
</option> | |
{% else %} | |
<option disabled="disabled">{{ variant.title }} - {{ 'products.product.sold_out' | t }}</option> | |
{% 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
<h1> This is a simple featured product section </h> | |
<p>{{ section.settings.featured_product.title }}</p> | |
{% schema %} | |
{ | |
"name": "Simple Featured Product", | |
"disabled_on": { | |
"templates": ["password"], | |
"groups": ["header"] | |
}, |
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
<h1> This is a simple featured product section </h> | |
<p>{{ section.settings.featured_product.title }}</p> | |
{% schema %} | |
{ | |
"name": "Simple Featured Product", | |
"disabled_on": { | |
"templates": ["password"] | |
}, | |
"settings": [ |
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
<h1> This is a simple featured product section </h> | |
<p>{{ section.settings.featured_product.title }}</p> | |
{% schema %} | |
{ | |
"name": "Simple Featured Product", | |
"settings": [ | |
{"type": "product", "id": "featured_product", "label": "Featured Product"} | |
], | |
"presets": [ |
NewerOlder