This file contains hidden or 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
<ul class="productGrid"> | |
{{#each products }} | |
{{#if @index '<=' 2 }} | |
<li class="product"> | |
{{>components/products/card show_compare=../show_compare show_rating=../settings.show_product_rating theme_settings=../theme_settings customer=../customer setting_show = ../settings}} | |
</li> | |
{{/if}} | |
{{/each}} | |
</ul> |
This file contains hidden or 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
/* This macro will be parsed as PHP code (see http://www.php.net) | |
The calculateshipping function is called every time a shipping calculation request is made by Shopify. | |
The function must return an array of available shipping options, otherwise no shipping options will be returned to your customers. | |
*/ | |
function calculateshipping($DATA) { | |
/* do not edit above this line */ |
This file contains hidden or 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
/* This macro will be parsed as PHP code (see http://www.php.net) | |
The calculateshipping function is called every time a shipping calculation request is made by Shopify. | |
The function must return an array of available shipping options, otherwise no shipping options will be returned to your customers. | |
*/ | |
function calculateshipping($DATA) { | |
/* do not edit above this line */ |
This file contains hidden or 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
#div1{ | |
.link{ | |
display: none; | |
font-weight: 700; | |
color: #343434; | |
span{ | |
color: #69f; | |
} | |
} | |
a[href^="#"]{ |
This file contains hidden or 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 header_title = page.title %} | |
{% include 'page_header' with header_title %} | |
<div class="wrapper wrapper--margins wrapper__article"> | |
<div class="rte"> | |
<div class="text-center"> | |
{{ page.content }} | |
</div> |
This file contains hidden or 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).ready( function() { | |
$('a[href^="/account/logout"]').on("click", function() { | |
$.ajax( $(this).attr('href') ) | |
.done(function() { | |
// Here you will change the url to whatever page you want to redirect to | |
window.location.href = "/pages/my-shopify-page"; | |
}); | |
return false; | |
}); | |
}); |
This file contains hidden or 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
<script> | |
$( document ).ready(function() { | |
//create a script element and set it's type and async attributes | |
var script = document.createElement('script'); script.type = 'text/javascript'; script.async = true; | |
//set the source of the script element | |
script.src = 'https://widgets.quadpay.com/stfrank/quadpay-widget-0.2.0.js?type=calculator&min=1&max=2500'; | |
//add the script element to the DOM | |
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(script, s); |
This file contains hidden or 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 data = JSON.stringify(false); | |
var xhr = new XMLHttpRequest(); | |
xhr.withCredentials = true; | |
xhr.addEventListener("readystatechange", function () { | |
if (this.readyState === this.DONE) { | |
var test = this.responseText; |
This file contains hidden or 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
// Escaping Liquid in SCSS. | |
// | |
// Expected output: | |
// a{ | |
// color: {{ settings.link-color }}; | |
// } | |
a{ | |
color: #{'{{ settings.link-color }}'}; | |
} |