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
// Localize jQuery variable | |
var fancyBox = 'no'; | |
var masonry = 'no'; | |
var images = 'no'; | |
var bxSlider = 'no'; | |
var slickSlider = 'no'; | |
function scripts_loaded(scriptName){ | |
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
<div class="product-swatches product-swatches-{{product.id}}" data-id="{{product.id}}" data-tag="{{product.metafields.swatch.tag}}"></div> | |
<div style="clear:both;"></div> | |
<script src="{{ 'product-swatches.js' | asset_url }}" defer></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
jQuery(document).ready(function(){ | |
function go_swatch(product_id){ | |
var appDomain = 'https://productswatches-herokuapp-com.global.ssl.fastly.net'; | |
var url = appDomain + '/product_swatches/get-json/'+product_id; | |
if(product_tag){ | |
var data = { | |
return_format: 'html', |
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 product.id %} | |
{% assign product_id = product.id %} | |
{% else %} | |
{% assign product_id = 0 %} | |
{% endif %} | |
{% if page.id %} | |
{% assign page_id = page.id %} | |
{% else %} | |
{% assign page_id = 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
<div class="press_modal_wrapper"> | |
<div class="press_modal"> | |
<div class="press_toolbar"> | |
<div class="press_title"></div> | |
<div class="press_close"><a href="#" class="close_press" press-id="{{forloop.index}}">CLOSE X </a></div> | |
<div style="clear: both;"></div> | |
</div> | |
<div class="slide_container"> | |
<ul class="pressslider"></ul> |
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
<div class="pressify_wrapper cols"> | |
{% paginate blog.articles by 250 %} | |
{% for article in blog.articles %} | |
{% assign externallink = article.metafields.press.externallink %} | |
<div class="box"> | |
<a href="#inline{{forloop.index}}" press-comment="{{ article.metafields.press.comment }}" {% if externallink %}press-url="{{ externallink }}" press-target="_blank"{% else %}press-url="{{ article.url }}" press-target="_self"{% endif %} press-title="{{ article.title }}" article-id="{{article.id}}" press-id="{{forloop.index}}" product-handle="{{ article.metafields.press.product_handle }}" class="go_carousel"> | |
<img src="{{ article.metafields.press.cover }}" style="max-width: 100%;" /> |
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
<div class="product-swatches-{{product.id}}-2"></div> | |
<div class="product-swatches-{{product.id}}"></div> | |
<div style="clear:both;"></div> | |
<style> | |
.product-swatches-ul li { | |
border-color: #f7f7f7 !important; | |
max-width: 50px; | |
border-width: 3px; | |
} | |
</style> |
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
var _rsq = _rsq || []; | |
_rsq.push([‘_setSiteId’, ‘415’]); Jouer's site ID is 415 | |
_rsq.push([‘_enableOnsite’]); | |
var email = TBD Use something like document.getelement etc etc, to get the text value, you can call .toString on it to be make sure it is a string as well | |
_rsq.push([‘_setUserEmail’, email]); // Pass the variable for the email in | |
_rsq.push(['_setUserProperties', { 'record_id': email,'email': email,'registration_source':'footer'}]); Record_id and email are required for set user props to work, use email as the record_id since it won't be available for a new user. |
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
<div class="product-swatches-{{product.id}}-2"></div> | |
<div class="product-swatches-{{product.id}}"></div> | |
<div style="clear:both;"></div> | |
<script> | |
jQuery(document).ready(function(){ | |
$(document.body).on('change','.go-color',function(){ | |
window.location = $(".go-color").val(); | |
}) | |
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
money = Money.zero | |
Input.cart.line_items.each do |line_item| | |
cart = Input.cart | |
product = line_item.variant.product | |
money+=line_item.line_price | |
if cart.discount_code.code == "XYZ" | |
if product.tags.include?('shoes') |
NewerOlder