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> | |
(function($){ | |
$(document).ready(function(){ | |
var apiUrl = "https://yourshop.myshopify.com/api/graphql"; | |
var token = "tokenhere"; | |
customProductSearch( | |
apiUrl, | |
token, |
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
//Product grid | |
<div id="product-colors-{{product.id}}" class="product-colors"> | |
{% capture variant_data %} | |
{% for variant in product.variants %} | |
{{ variant.option1 | escape | handleize | remove: "-amp"}}|{{variant.id}} | |
{% if forloop.last == false %}::{% endif%} | |
{% endfor %} | |
{% endcapture %} |
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
//Collection page | |
// Start of filter | |
var grid_view_items = $('.grid--view-items'); | |
var grid_product = $(grid_view_items).find('.grid__item'); | |
var $filterCheckboxes = $('input[type="radio"].collection-filter'); | |
$filterCheckboxes.on('change', function() { | |
var selectedFilters = {}; |
OlderNewer