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
<!-- /sections/product-brand-features.liquid --> | |
<!-- Desktop --> | |
{% for block in section.blocks %} | |
{% case block.type %} | |
{% when 'image' %} | |
{% if block.settings.product-feature != blank %} | |
{% if block.settings.product-feature == product.handle %} | |
<div class="grid--full card-shadow {% if block.settings.id == "left" %}feature-flex{% else %}feature-flex-right{% endif %} product-related-items home-reveal"> | |
{% if block.settings.id == 'left' %} | |
{% if block.settings.image == blank %} |
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
<!-- | |
ADD THIS BELOW "{% include 'variant-qty-controls', qtyMin:1 %}" | |
--> | |
<div class="product--notes"> | |
{{ product.metafields.product_notice.content}} | |
</div> |
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
$container.on(theme.Variants.eventStrs.onVariantChanged, function (e, variant) { | |
if (variant) { | |
if(window.location.pathname.indexOf('product') >= 0){ | |
var newurl = window.location.protocol + '//' + window.location.host + window.location.pathname + '?variant=' + variant.id; | |
window.history.replaceState({path: newurl}, '', newurl); | |
} | |
self._changeImage($container, variant); | |
self._changePrice($container, variant); | |
self._changeSKU($container, variant); | |
self._updateAvailability($container, variant.available); |
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
{% comment %} | |
Set the extension of your color files below. Use 'png', 'jpeg', 'jpg' or 'gif'. | |
{% endcomment %} | |
{% assign swatchIndex = index %} | |
{% assign colPage = collPage %} | |
{% assign swatchTotal = total %} | |
{%- assign varGenProd = product -%} | |
{%- assign mainVariant = varGenProd.selected_or_first_available_variant -%} | |
{% assign file_extension = 'png' %} |
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
function docSpacing() { | |
// Init header height script | |
var hHeight = $("#header").height(), | |
hPosition = $("#header").data('position'), | |
mobileSticky = $(".mobile-cart-buttons").data('sticky'), | |
mobileLocation = $(".sticky-footer").data("mobile"), | |
mobileNavDiv = $('.sticky-footer'), | |
mobilehHeight = $(".sticky-footer").height(), | |
mobileProdBtns = $('.product-top-buttons'), | |
mobilePromoDiv = $('.promo-bar'), |
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
initHeader: function (container) { | |
var self = this; | |
var $container = $(container); | |
var isAndroid = navigator.userAgent.indexOf("Android") > -1; | |
if (isAndroid) { | |
$('#searchInputMobile', container).focus(function () { | |
$('body').addClass("fixfixed"); | |
}); | |
$('#searchInputMobile', container).blur(function () { |