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
// change line 108 from | |
{% for line_item in line_items_in_shipment %} | |
// to | |
{% assign line_items_by_sku = line_items_in_shipment | sort:'sku' %} | |
{% for line_item in line_items_by_sku %} |
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
// change line 21 from | |
<th>Item</th> | |
// to | |
<th>SKU</th> | |
<th>Item</th> | |
// change line 30 from | |
{% for line_item in line_items %} | |
// to | |
{% assign line_items_by_sku = line_items | sort:'sku' %} |
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="cross-content"></div> | |
<script> | |
function fisherYates ( myArray ) { | |
var i = myArray.length,j,temp; | |
if (i === 0) return false; | |
while (--i) { | |
j = Math.floor(Math.random()*(i+1)); | |
temp = myArray[i]; | |
myArray[i] = myArray[j]; |
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
{% assign member_discount_code = settings.member_discount_code %} | |
{% assign class_discount_code = settings.class_discount_code %} | |
{% assign combined_discount_code = settings.combined_discount_code %} | |
{% if customer %} | |
{% assign customer_tags = customer.tags | join:',' | downcase %} | |
{% if customer_tags contains 'member' %} | |
{% assign member = true %} | |
{% endif %} | |
{% endif %} |
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
{%- assign media_padding_top = media.aspect_ratio + 0.08 | divided_by: media.aspect_ratio | times: 100 -%} | |
or | |
{%- assign media_padding_top = 8 | divided_by: media.aspect_ratio | plus: 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
var price = '$'+parseFloat(variant.price/100).toFixed(2); | |
$('.product-price').text(price); |
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
{% assign string = product.variants[0].title | downcase | split:' ' %} | |
{% assign size = string | size %} | |
{% assign pass = true %} | |
{% for i in (0..size) %} | |
{% for variant in product.variants %} | |
{% assign compare = variant.title | downcase | split:' ' %} | |
{% unless string[i] == compare[i] %}{% assign pass = false %}{% endunless %} | |
{% endfor %} | |
{% if pass %}{% assign remove = remove | append:string[i] | append:' ' %}{% endif %} | |
{% endfor %} |
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="content-test"></div> | |
<script> | |
var request = new XMLHttpRequest(); | |
request.open('GET', '/?section_id=[static-section-name]', false); | |
request.send(); | |
$('.content-test').html(request.responseText); | |
</script> |
NewerOlder