{% assign display_wishlist = true %} {% for tag in Wishlist.data.exclusions %} {% if product.tags contains tag %} {% assign display_wishlist = false %} {% endif %} {% endfor %} {% if product == blank %} {% assign product = Product %} {% endif %} {% if display_wishlist %} {%- if wishlist == blank -%} {% assign wishlist = Wishlist.data.items | map: 'handle' %} {% if wishlist[0] == null %} {% assign wishlist = data.items | map: 'handle' %} {% endif %} {%- endif -%} {%- assign p_title = product.title | replace: '"', '”' -%} {%- capture wishlist_add -%} event.preventDefault(); Wishlist.add({ handle: '{{ product.handle }}', type: '{{ product.type | escpae }}', image: '{{ product.featured_image }}', {%- if variant -%}variant: {{ variant.id | json }},{%- endif -%} title: `{{ p_title }}` }); [this, _n.sibling(this, '.wishlist__button')].forEach(function(button) { button.classList.toggle('dn')}); {%- endcapture -%} Wishlist Remove from wishlist {% endif %} {% assign productImage = product.featured_image %} {% assign hoverImage = product.hover_image %} {% capture productImageRepsonsive %} {%- if productImage != blank -%} {%- if product.featured_image_width > 180 -%}{{ productImage | img_url: '180x' }} 180w {{ 180 | divided_by: product.featured_image_aspect_ratio | round }}h,{%- endif -%} {%- assign image_size = product.featured_image_width | append: 'x' -%} {{ productImage | img_url: image_size }} {{ product.featured_image_width }}w {{ product.featured_image_height }}h {%- endif -%} {% endcapture %} {% capture hoverImageRepsonsive %} {%- if hoverImage != blank -%} {%- if product.featured_image_width > 180 -%}{{ hoverImage | img_url: '180x' }} 180w {{ 180 | divided_by: product.featured_image_aspect_ratio | round }}h,{%- endif -%} {%- assign image_size = product.featured_image_width | append: 'x' -%} {{ hoverImage | img_url: image_size }} {{ product.featured_image_width }}w {{ product.featured_image_height }}h {%- endif -%} {% endcapture %} {% if hoverImage != blank %}{% unless product.tags contains 'Graphic Overlay' %} {% endunless %}{% endif %} {% for badge in badges %} {% if product.tags contains badge.tag and badge.tag != 'more-colors' %} {{ badge.collection_badge }} {% endif %} {% endfor %} {% if product.siblings.size > 0 %} {% for sib in product.siblings %} {% if forloop.index < 4 %} {% unless sib.image_url == blank %} {% endunless %} {% elsif forloop.index == 4 %} + {{ product.siblings | size | minus: 3 }} {% break %} {% endif %} {% endfor %} {% endif %} {% for tag in product.tags %} {% if tag contains 'Vendor' %} {% assign vendor_tag = tag | remove: 'Vendor:' %} {% assign vendor_collab = vendor_tag | append: ' x' %} {% break %} {% endif %} {% endfor %} {% if product.siblings.size > 0 %} {% assign productTitle = product.title | split: ' - ' | first %} {% else %} {% assign productTitle = product.title | remove: product.type | split: '-' %} {% endif %} {% assign productTitle = product.title | split: ' - ' | first %} {% unless product.title contains vendor_collab %} {% assign productTitle = productTitle | remove: vendor_tag %} {% endunless %} {% if vendor_tag != blank %} {{ vendor_tag }} {% endif %} {{ productTitle }} {% for badge in badges %} {% if product.tags contains badge.tag and badge.tag == 'more-colors' %} {{ badge.collection_badge }} {% endif %} {% endfor %} {% if product.siblings.size > 0 %} {{ product.siblings.size | plus: 1}} Color{% if product.siblings.size >= 1 %}s{% endif %} {% endif %} {% assign discount_amount = product.price | divided_by: product.compare_price | times: -100 | plus: 100 | round %} {%- assign range = false -%} {%- assign min = product.price_min -%} {%- assign compare_min = product.compare_min -%} {%- assign max = product.price_max -%} {%- assign compare_max = product.compare_max -%} {%- assign before_text = '' -%} {%- assign min_class = '' -%} {%- assign max_class = '' -%} {%- if product.siblings.size > 0 -%} {%- for sibling in product.siblings -%} {%- assign sibling_price = sibling.price | times: 100 -%} {%- assign sibling_compare = sibling.compare_at_price | times: 100 | round -%} {%- if sibling_price < min -%} {%- assign min = sibling_price -%} {%- assign compare_min = sibling_compare -%} {%- endif -%} {%- if sibling_price > max -%} {%- assign max = sibling_price -%} {%- assign compare_max = sibling_compare -%} {%- endif -%} {%- endfor -%} {%- endif -%} {% assign discount_amount = max | divided_by: compare_max | times: -100 | plus: 100 | round %} {%- if max < compare_max and discount_amount > 10 -%} {%- assign max_class = 'dark-red' -%} {%- endif -%} {% assign discount_amount = min | divided_by: compare_min | times: -100 | plus: 100 | round %} {%- if min < compare_min and discount_amount > 10 -%} {%- assign min_class = 'dark-red' -%} {%- endif -%} {%- if compare_min < compare_max -%} {%- assign before_text = 'From ' -%} {%- endif -%} {% assign min = min | round %} {% assign max = max | round %} {%- if min < max -%} {%- assign range = true -%} {%- endif -%} {%- if range == true -%} {{ before_text }} {{ min | money }} - {{ max | money }} {%- else -%} {% assign discount_amount = product.price | divided_by: product.compare_price | times: -100 | plus: 100 | round %} {%- if product.compare_price > product.price and discount_amount > 10 -%} {{ before_text }} {{ product.price | money }} {{ product.compare_price | money }} {%- else -%} {{ product.price | money }} {%- endif -%} {%- endif -%} {% if product.reviews %} {% assign to_half = product.reviews.rating | round:1 | divided_by: 0.5 | round | times: 0.50 %} {% for i in (1..5) %} {% assign half = i | minus: 0.5 %} {% if half == to_half %} {% else %} {% endif %} {% endfor %} ({{ product.reviews.count }}) {% endif %}
{{ offer.title }} {{offer.product.title}} {% for variant in offer.product.variants %} {{variant.title}} {% endfor %} Select Free Gift
{% if item.properties['_image'] %} {% elsif item.properties['Custom Bottom Graphic'] %} {% elsif item.properties['Custom Griptape'] %} {% else %} {% endif %} {% if item.properties['_overlay'] != blank %} {% endif %} {% if item.properties._gift %} {{ item.properties._gift }} {% endif %} {{item.product_title}} {% for option in item.options_with_values %} {% unless option.name == "Title" %} {{ option.name }}: {{ option.value }} {% endunless %} {% endfor %} {%- comment -%} {% for prop in item.properties %} {% assign pk1 = prop | first | slice: 0 %} {% unless pk1 == '_' %} {{prop | first}}: {{prop|last}} {% endunless %} {% endfor %} {%- endcomment -%} {% assign price = item.final_price %} {% if item.properties._bundle == 'primary' %} {% assign reverse_items = items | reverse %} {% assign showIncludes = false %} {% for subitem in reverse_items %} {% if subitem.properties._bundle == 'component' and subitem.properties._instance == item.properties._instance %} {% assign showIncludes = true %} {% endif %} {% endfor %} {% if showIncludes == true %} Includes {% endif %} {% for subitem in reverse_items %} {% if subitem.properties._bundle == 'component' and subitem.properties._instance == item.properties._instance %} {{subitem.title}} + {{subitem.final_price | money }} {% assign price = price | plus: subitem.final_price %} {% endif %} {% endfor %} {% else %} {% endif %} {{price | money }} {% assign quantity_variance = item.properties._inventory | minus: item.quantity %} {% if quantity_variance < 10 %} Only {{item.properties._inventory}} left! {% endif %} {% unless item.properties._gift or item.selling_plan_allocation %} – {% assign enabled = '' %} {% if item.quantity >= item.properties._inventory %} {% assign enabled = 'silver pointer-none' %} {% endif %} + {% endunless %} {% unless item.properties._gift and product_has_only_default_variant %} Remove {% endunless %}