Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion blocks/buy-buttons.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
"presets": [
{
"name": "Product (buy buttons)",
"settings": { "product": "{{ context.product }}" }
"settings": { "product": "{{ closest.product }}" }
}
]
}
Expand Down
4 changes: 2 additions & 2 deletions blocks/collection-card.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@
{
"type": "image",
"settings": {
"image": "{{ context.collection.image }}"
"image": "{{ closest.collection.image }}"
}
},
{
"type": "collection-title",
"settings": {
"collection": "{{ context.collection }}",
"collection": "{{ closest.collection }}",
"heading_size": "h4"
}
}
Expand Down
2 changes: 1 addition & 1 deletion blocks/collection-title.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
{
"name": "Collection (title)",
"settings": {
"collection": "{{ context.collection }}"
"collection": "{{ closest.collection }}"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion blocks/price.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
{
"name": "Product (price)",
"settings": {
"product": "{{ context.product }}"
"product": "{{ closest.product }}"
}
}
]
Expand Down
6 changes: 3 additions & 3 deletions blocks/product-card.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -67,21 +67,21 @@
{
"type": "product-medias",
"settings": {
"product": "{{ context.product }}",
"product": "{{ closest.product }}",
"media_featured": true
}
},
{
"type": "product-title",
"settings": {
"product": "{{ context.product }}",
"product": "{{ closest.product }}",
"heading_size": "h5"
}
},
{
"type": "price",
"settings": {
"product": "{{ context.product }}"
"product": "{{ closest.product }}"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion blocks/product-description.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"presets": [
{
"name": "Product (description)",
"settings": { "product": "{{ context.product }}" }
"settings": { "product": "{{ closest.product }}" }
}
]
}
Expand Down
10 changes: 5 additions & 5 deletions blocks/product-grid.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
>
{% for product in products limit: block.settings.products_to_show %}
<li>
{% content_for "block", type: "product-card", id: "product-grid-item", context.product: product %}
{% content_for "block", type: "product-card", id: "product-grid-item", closest.product: product %}
</li>
{% endfor %}
</ul>
Expand Down Expand Up @@ -77,27 +77,27 @@
"type": "product-card",
"static": true,
"settings": {
"product": "{{ context.product }}"
"product": "{{ closest.product }}"
},
"blocks": [
{
"type": "product-medias",
"settings": {
"product": "{{ context.product }}",
"product": "{{ closest.product }}",
"media_featured": true
}
},
{
"type": "product-title",
"settings": {
"product": "{{ context.product }}",
"product": "{{ closest.product }}",
"heading_size": "h5"
}
},
{
"type": "price",
"settings": {
"product": "{{ context.product }}"
"product": "{{ closest.product }}"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion blocks/product-medias.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
{
"name": "Product (media)",
"settings": {
"product": "{{ context.product }}"
"product": "{{ closest.product }}"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion blocks/product-title.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
{
"name": "Product (title)",
"settings": {
"product": "{{ context.product }}"
"product": "{{ closest.product }}"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion blocks/quantity-selector.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"presets": [
{
"name": "Product (quantity select)",
"settings": { "product": "{{ context.product }}" }
"settings": { "product": "{{ closest.product }}" }
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion blocks/variant-picker.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"presets": [
{
"name": "Product (variant picker)",
"settings": { "product": "{{ context.product }}" }
"settings": { "product": "{{ closest.product }}" }
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion config/settings_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"name": "theme_info",
"theme_name": "Reference theme",
"theme_version": "0.4.1",
"theme_version": "0.4.2",
"theme_author": "Shopify",
"theme_documentation_url": "https://help.shopify.com/manual/online-store/themes",
"theme_support_url": "https://support.shopify.com/"
Expand Down
20 changes: 10 additions & 10 deletions sections/custom-section.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@
{
"type": "image",
"settings": {
"image": "{{ context.collection.image }}",
"image": "{{ closest.collection.image }}",
"object_fit": "cover",
"spacing": {},
"size": {}
Expand All @@ -352,7 +352,7 @@
{
"type": "collection-title",
"settings": {
"collection": "{{ context.collection}}",
"collection": "{{ closest.collection}}",
"heading_size": "h4",
"alignment": "start"
}
Expand All @@ -365,7 +365,7 @@
{
"type": "image",
"settings": {
"image": "{{ context.collection.image }}",
"image": "{{ closest.collection.image }}",
"object_fit": "cover",
"spacing": {},
"size": {}
Expand All @@ -374,7 +374,7 @@
{
"type": "collection-title",
"settings": {
"collection": "{{ context.collection }}",
"collection": "{{ closest.collection }}",
"heading_size": "h4",
"alignment": "start"
}
Expand All @@ -387,7 +387,7 @@
{
"type": "image",
"settings": {
"image": "{{ context.collection.image }}",
"image": "{{ closest.collection.image }}",
"object_fit": "cover",
"spacing": {},
"size": {}
Expand All @@ -396,7 +396,7 @@
{
"type": "collection-title",
"settings": {
"collection": "{{ context.collection }}",
"collection": "{{ closest.collection }}",
"heading_size": "h4",
"alignment": "start"
}
Expand Down Expand Up @@ -884,27 +884,27 @@
"type": "product-card",
"static": true,
"settings": {
"product": "{{ context.product }}"
"product": "{{ closest.product }}"
},
"blocks": [
{
"type": "product-medias",
"settings": {
"product": "{{ context.product }}",
"product": "{{ closest.product }}",
"media_featured": true
}
},
{
"type": "product-title",
"settings": {
"product": "{{ context.product }}",
"product": "{{ closest.product }}",
"heading_size": "h5"
}
},
{
"type": "price",
"settings": {
"product": "{{ context.product }}"
"product": "{{ closest.product }}"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion sections/main-collection.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<ul class="product-grid product-grid--{{ section.id }}">
{% for product in collection.products %}
<li>
{% content_for "block", type: "product-card", id: "collection-product-card", context.product: product %}
{% content_for "block", type: "product-card", id: "collection-product-card", closest.product: product %}
</li>
{% endfor %}
</ul>
Expand Down
2 changes: 1 addition & 1 deletion sections/main-list-collections.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<ul class="product-grid product-grid--{{ section.id }}">
{% for collection in collections %}
<li>
{% content_for "block", type: "collection-card", id: "collection-card", context.collection: collection %}
{% content_for "block", type: "collection-card", id: "collection-card", closest.collection: collection %}
</li>
{% endfor %}
</ul>
Expand Down
10 changes: 5 additions & 5 deletions templates/collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"heading_mqAgUH": {
"type": "heading",
"settings": {
"heading": "{{ context.collection.title }}",
"heading": "{{ closest.collection.title }}",
"heading_size": "h1",
"alignment": "start",
"size": {
Expand Down Expand Up @@ -35,27 +35,27 @@
"type": "product-card",
"static": true,
"settings": {
"product": "{{ context.product }}"
"product": "{{ closest.product }}"
},
"blocks": {
"product_medias_Gawh7G": {
"type": "product-medias",
"settings": {
"product": "{{ context.product }}",
"product": "{{ closest.product }}",
"media_featured": true,
}
},
"title_zGnXr7": {
"type": "product-title",
"settings": {
"product": "{{ context.product }}",
"product": "{{ closest.product }}",
"heading_size": "h5",
}
},
"price_fiTWdm": {
"type": "price",
"settings": {
"product": "{{ context.product }}"
"product": "{{ closest.product }}"
}
}
},
Expand Down
Loading
Loading