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
{% style %} | |
#shopify-section-{{ section.id }} { | |
padding-top: {{ section.settings.padding_top }}px; | |
padding-bottom: {{ section.settings.padding_bottom }}px; | |
padding-left: {{ section.settings.padding_left }}px; | |
padding-right: {{ section.settings.padding_right }}px; | |
{% if section.settings.width == 'wide' -%} | |
width: 100%; | |
{%- elsif section.settings.width == 'half' -%} | |
width: 50%; |
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
{% if customer.tags contains 'Active Subscriber' %} | |
<main id="template-{{ template | replace: '.', '-' | handle }}" class="shopify-section article-page" data-check-for-order="true"> | |
{% section 'article__banner' %} | |
<section class="section__wrapper | |
section | |
"> | |
<div class="container"> | |
{% section 'article__sidebar' %} | |
{% section 'article__main' %} |
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
<html lang="{{ shop.locale }}"> | |
{% if template contains "subscription" %} | |
<!-- Subscription Content --> | |
{% unless customer %} | |
{% assign send_to_login = true %} | |
{% endunless %} | |
{% endif %} | |
{% if send_to_login and request.path != "/challenge" %} |
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
{% if customer and customer.tags contains 'Your Tag' %} | |
Your Content | |
{% endif %} |
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
<html lang="{{ shop.locale }}"> | |
<head> | |
{% unless customer %} | |
{% if template contains 'customers' %} | |
{% assign send_to_login = false %} | |
{% else %} | |
{% assign send_to_login = true %} | |
{% endif %} | |
{% endunless %} |
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
{% if section.settings.cart_cross_sell_enable %} | |
<!-- Start Cross Sell Section --> | |
<script | |
type="application/json" | |
data-section-type="cart-simple-cross-sell" | |
data-section-id="{{ section.id }}" | |
> | |
</script> |
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
{% assign cart-size = cart.total_price | divided_by: 100 %} | |
{% assign threshold-1 = section.settings.top_order_threshold | minus: 0.01 %} | |
{% assign threshold-2 = section.settings.second_order_threshold | minus: 0.01 %} | |
{% assign threshold-3 = section.settings.third_order_threshold | minus: 0.01 %} | |
{% assign threshold-4 = section.settings.fourth_order_threshold | minus: 0.01 %} | |
{% if cart-size > threshold-1 %} | |
{% unless section.settings.cart_gwp_product_1 == blank %} | |
{% assign gwp1 = 0 %} |
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
{% if section.settings.show_section %} | |
{% include 'cart-gift-with-purchase' %} | |
{% endif %} | |
{% schema %} | |
{ | |
"name": "Gift with Purchase", | |
"class": "gwp-section", | |
"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
<button type="submit" name="add" class="action_button add_to_cart" > | |
{% if product.tags contains 'Gift Box' %} | |
<input type="hidden" name="return_to" value="/pages/add-a-box" /> | |
{% endif %} | |
<span class="text">{{ add_to_cart_label }}</span> | |
</button> |
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
<section class="section__wrapper section"> | |
<div class="container content"> | |
<h1>{{collection.title | escape }}</h1> | |
{% if collection.description != blank %} | |
<div>{{ collection.description }}</div> | |
{% endif %} |