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
"blocks": { | |
"vendor": { | |
"type": "text", | |
"settings": { | |
"text": "{{ product.vendor }}", | |
} |
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
{%- if block.settings.heading -%} | |
<h2>{{ block.settings.heading }}</h2> | |
{%- endif -%} | |
{%- if block.settings.description -%} | |
<p>{{ block.settings.description }}</p> | |
{%- endif -%} | |
{% schema %} | |
{ |
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
└── theme-app-extension | |
├── assets | |
│ ├── image.jpg | |
│ ├── icon.svg | |
│ ├── app-block.js | |
│ ├── app-block.css | |
│ ├── app-embed-block.js | |
│ └── app-embed-block.css | |
├── blocks | |
│ ├── app-block.liquid |
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
{% if product.selling_plan_groups.size > 0 %} | |
<div> | |
<label for="plans">Purchase options:</label> | |
<select name="selling_plan" id="plans"> | |
<option value="">One time purchase</option> | |
{% for variant in product.variants %} | |
<optgroup label="{{ variant.title }}"> | |
{% for allocation in variant.selling_plan_allocations %} | |
<option value="{{ allocation.selling_plan.id }}"> | |
{{ allocation.selling_plan.name }} |
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 block in section.blocks %} | |
{% case block.type %} | |
{%- when '@app' -%} | |
{% render block %} | |
{% when 'title' %} | |
<h2>{{ product.title }}</h2> | |
{% when 'price' %} |
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
{% schema %} | |
{ | |
"name": "Main product section", | |
"blocks": [ | |
{ | |
"type": "@app" | |
}, | |
{ | |
"type": "title", | |
"name": "Title", |
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
{ | |
"sections": { | |
"main": { | |
"type": "main-product", | |
"blocks": { | |
"title": { | |
"type": "title", | |
"settings": { | |
} | |
}, |
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
"blocks": { | |
"title": { | |
"type": "title" | |
}, | |
"price": { | |
"type": "price" | |
}, | |
"vendor": { | |
"type": "vendor" | |
}, |
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 block in section.blocks %} | |
{% case block.type %} | |
{% when 'title' %} | |
<h2>{{ product.title | escape }}</h2> | |
{% when 'price' %} | |
{{ product.price }} | |
{% when 'vendor' %} |
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
{% schema %} | |
{ | |
"name": "Main product section", | |
"blocks": [ | |
{ | |
"type": "title", | |
"name": "Title", | |
"limit": 1 | |
}, | |
{ |