Skip to content

Instantly share code, notes, and snippets.

View pxbutter's full-sized avatar
🤠

Alex Iversen pxbutter

🤠
View GitHub Profile
{% schema %}
{
"name": "Spacer",
"tag": "section",
"settings": [
{
"type": "range",
"id": "height",
"label": "Spacer height (px)",
"min": 0,
{%- assign compareAtPriceAmount = line_item.variant.compare_at_price.amount | times: 1.0 -%}
{%- assign priceAmount = line_item.variant.price.amount | times: 1.0 -%}
{%- assign lineItemQuantity = line_item.quantity | times: 1.0 -%}
{%- if compareAtPriceAmount > priceAmount %}
{{ compareAtPriceAmount | times: lineItemQuantity | money }}
{%- endif -%}