layout | title | description | nav | ||
---|---|---|---|---|---|
default |
Limit cart quantities to in-stock items |
You can prevent your customers from adding larger quantities to the cart than you have in stock at your online Shopify store. |
|
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
document.addEventListener("DOMContentLoaded", function(){ | |
thumbnails = document.querySelectorAll('img[src*="/products/"]'); | |
function addEventListenerList(thumbnails) { | |
for (var i = 0, len = thumbnails.length; i < len; i++) { | |
console.log(thumbnails[i].currentSrc); | |
thumbnails[i].addEventListener('click', thumbImageSwap, false); | |
} | |
} | |
function thumbImageSwap(){ |
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
/*! Magnific Popup - v1.0.0 - 2015-03-30 | |
* http://dimsemenov.com/plugins/magnific-popup/ | |
* Copyright (c) 2015 Dmitry Semenov; */ | |
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn} |
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
/*================ Vendor-specific styles ================*/ | |
/* Magnific Popup CSS */ | |
.mfp-bg { | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
z-index: 1042; | |
overflow: hidden; | |
position: fixed; |
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 %} | |
Place this in your product.liquid template, at the bottom. | |
{% endcomment %} | |
{% if product.variants.size > 1 %} | |
<script> | |
var variantImages = {}, | |
thumbnails, | |
variant, | |
variantImage, | |
optionValue, |
layout: default title: Add tabs to product descriptions description: Learn product tabs. Increase your SEO and readability
supported: false demo_store: http://jewess-blick9504.myshopify.com/products/acadia-surf
nav: group: products
layout | title | description | supported | nav | ||
---|---|---|---|---|---|---|
default |
Get customization information for products |
Using line item properties to get custom information for products like monograms, engravings, or other customizations. |
false |
|
-
Copy this code and paste it at the bottom of your
Assets/vendor.js
file, or if your theme doesn't have avendor.js
file, place it at the very top of thetheme.js
file. (At the moment, POP requires this to be added at the very bottom of the theme.js file, followed by the next bit). -
Add this to the bottom of the
Assets/theme.js
file:
Shopify.Cart.ShippingCalculator.show( {
submitButton: theme.strings.shippingCalcSubmitButton,
submitButtonDisabled: theme.strings.shippingCalcSubmitButtonDisabled,
customerIsLoggedIn: theme.strings.shippingCalcCustomerIsLoggedIn,
moneyFormat: theme.strings.shippingCalcMoneyFormat
OlderNewer