Skip to content
Draft
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ test-results

#IntelliJ IDE
.idea
.shopify
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"files.associations": {
"**/*.min.js": "plaintext"
},
"[plaintext]": {
"editor.formatOnSave": false
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
Expand Down

This file was deleted.

This file was deleted.

22 changes: 0 additions & 22 deletions components/block-price/setup/sections/block-price.liquid

This file was deleted.

14 changes: 0 additions & 14 deletions components/block-price/setup/templates/product.block-price.json

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

45 changes: 0 additions & 45 deletions components/block-title/setup/sections/block-title.liquid

This file was deleted.

18 changes: 0 additions & 18 deletions components/block-title/setup/templates/product.block-title.json

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions components/is-land/assets/vendor.is-land.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,14 @@
- product {product} - Product object

Usage:
{% render 'block-buy-buttons', block: block %}
{% render 'product.block.buy-buttons' %}
{% endcomment %}

{% render 'stylesheet', name: 'component.block-buy-buttons.css' %}
{% render 'stylesheet', name: 'product.block.buy-buttons.css' %}

{%- liquid
assign form_id = 'product-form-' | append: section.id

assign show_dynamic_checkout = false

if block.settings.show_dynamic_checkout
assign show_dynamic_checkout = true
endif
assign show_dynamic_checkout = show_dynamic_checkout | default: block.settings.show_dynamic_checkout, allow_false: true | default: false

assign check_against_inventory = true
assign quantity_rule_soldout = false
Expand All @@ -38,7 +33,6 @@
{% if show_dynamic_checkout %}
data-show-dynamic-checkout=""
{% endif %}
{{ block.shopify_attributes }}
>
<div role="alert" hidden>
<span></span>
Expand Down Expand Up @@ -102,5 +96,5 @@
</block-buy-buttons>

<script type="module">
import 'component.block-buy-buttons'
import 'product.block.buy-buttons'
</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{%- render 'product.block.buy-buttons' -%}

<script type="application/json">
{{ product.variants | json }}
</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"sections": {
"block_buy_buttons": {
"type": "block-buy-buttons"
}
},
"order": ["block_buy_buttons"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
- product {product} - Product object

Usage:
{% render 'product-description' %}
{% render 'product.block.description' %}
{% endcomment %}

{%- liquid
assign product = product | default: block.settings.product | default: section.settings.product

capture description
render 't-with-fallback', key: 'info.placeholder_product_description', fallback: 'This area is used to describe your product’s details. Tell customers about the look, feel, and style of your product. Add details on color, materials used, sizing, and where it was made.'
endcapture
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{%- render 'product.block.description' -%}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"sections": {
"block_description": {
"type": "block-description"
}
},
"order": ["block_description"]
}
Loading