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": [ |
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
{ | |
"name": "t:sections.header.name", | |
"type": "header", | |
"sections": { | |
"announcement-bar": { | |
"type": "announcement-bar", | |
"blocks": { | |
"announcement-bar-0": { | |
"type": "announcement", | |
"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
└─ theme | |
├─ assets | |
├─ config | |
├─ layout | |
│ └─ theme.liquid | |
├─ locales | |
└─ sections | |
├─ footer-group.json | |
├─ header.liquid | |
├─ header-group.json |
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
<ul class="block-grid mobile four-up product-collection"> | |
{% for link in linklist.links %} //Here we are saying use the links in the linklist we created and assign them to the below code | |
<li> | |
<div class="product"> | |
{% comment %} | |
You can connect collections, products, pages, & even blogs. By default it will use the first product that appears on a collection or you can pick a featured image. | |
{% endcomment %} | |
{% assign link_item = link.object %} //Creates a new variable for link_item using link.object which in-turn can access any of the attributes that are available (product, collection, page or blog) | |
{% assign link_image = '' %}//creates a new variable for link_image which assigns |
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
// Escaping Liquid in SCSS. | |
// | |
// Expected output: | |
// a{ | |
// color: {{ settings.link-color }}; | |
// } | |
a{ | |
color: #{'{{ settings.link-color }}'}; | |
} |
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
<table class=”responsive-table”> | |
<thead> | |
<th>Product</th> | |
<th>Price</th> | |
<th>Quantity</th> | |
<th>Total</th> | |
</thead> | |
</tbody> | |
{% for item in cart.items %} | |
<tr class=”responsive-table__row”> |
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
products = ShopifyAPI::Product.find(:all, params: { order: 'inventory_total desc', limit: 250 }) | |
process_products(products) | |
3.times do | |
break unless products.next_page? | |
products = products.fetch_next_page | |
process_products(products) | |
end |
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
rate_definitions: | |
- | |
name: Standard | |
price: 0 | |
currency: CAD | |
rate_class_id: 10 | |
conditions: | |
- | |
field: total_price | |
criteria: 100 |
NewerOlder