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
#!/usr/bin/env bash | |
# Run filetype-specific linting on a given commit range. | |
# ------------------------------------------------------ | |
# | |
# Usage: | |
# | |
# $ travis/validate HEAD~5 | |
# $ travis/validate $TRAVIS_COMMIT_RAGE |
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
<div class="buyx-msg"></div> | |
{% include 'buyx-cart' %} |
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
Replace {{ item.title }} | |
with | |
{{ item.title | |
| remove: 'Default Title / ' | remove: ' - Default' | remove: ' / Default' | remove: 'Default' | remove: ' / Title' | remove: 'Title' | |
}} | |
For JavaScript cart popups: | |
title.replace(' - Default', '').replace(' / Default', '').replace('Default', '').replace(' / Title', '').replace('Title', '') |
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
.buyx-msg { | |
color: #F45B4F; | |
font-weight: bold; | |
font-size: 18px; | |
width: 100%; | |
text-align: center; | |
margin-bottom: 10px; | |
} | |
/* | |
.buyx-msg a { |
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
{% if item.variant.compare_at_price and item.variant.compare_at_price > item.price %} | |
<del>{{ item.variant.compare_at_price | money }}</del> | |
{% endif %} | |
{{ item.price | money }} |
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
Quantity field: | |
After {{ item.variant.id }} and value="{{ item.quantity }}", add the following: | |
{% unless item.variant.inventory_management == blank or item.variant.inventory_policy == 'continue' %} max="{{ item.variant.inventory_quantity }}" {% endunless %} | |
At the end of cart.liquid, add | |
<script> | |
jQuery('[max]').change(function() { |
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
<div class="collection-filters-container cf-select-wrapper"></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
/* Your designer can adjust these to get all kind of looks: | |
one or separate lines, active links instead of checkboxes, colors etc. */ | |
.collection-filters-container { | |
/* | |
*/ | |
text-align: center; | |
margin: 10px 0px 10px 0px; |
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
{% include 'collection-filter-v2' %} | |
NewerOlder