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
/* | |
* 1. Create the filter by price Facet: | |
* - Set "Facet type" to "Checkboxes" | |
* - Set "Data source" to "Price" | |
* - Set "Sort by" to "Raw Value" | |
* 2. Set $price_facet_name to the name of the crewated facet | |
*/ | |
function index_custom_price_range( $params, $class ) { |
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 src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> | |
{% if customer %} | |
<div | |
id="swell-customer-identification" | |
data-authenticated="true" | |
data-email="{{ customer.email }}" | |
data-id="{{ customer.id }}" | |
data-tags='{{ customer.tags | json }}' | |
style="display:none;" |
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
@font-face { | |
font-family: 'Proxima Nova'; | |
src: url('https://cdn.shopify.com/s/files/1/0581/6814/8141/t/4/assets/ecef0faef83874e9f6bb9b5e9fa05a0e.woff2') format('woff2'), | |
url('https://cdn.shopify.com/s/files/1/0581/6814/8141/t/4/assets/a8ea564afc114e1a061cb9ef27a0560b.woff') format('woff'); | |
font-weight: 400; | |
font-style: normal; | |
font-display: swap; | |
} | |
@font-face { |
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
// handlelize in liquid: https://github.com/Shopify/liquid/blob/63eb1aac69a31d97e343822b973b3a51941c8ac2/performance/shopify/shop_filter.rb#L100 | |
// how to handlelize in js: https://ricardometring.com/javascript-replace-special-characters | |
function handlelize (str) { | |
str = str.normalize('NFD').replace(/[\u0300-\u036f]/g, '') // Remove accents | |
.replace(/([^\w]+|\s+)/g, '-') // Replace space and other characters by hyphen | |
.replace(/\-\-+/g, '-') // Replaces multiple hyphens by one hyphen | |
.replace(/(^-+|-+$)/g, '') // Remove extra hyphens from beginning or end of the string | |
.toLowerCase(); // To lowercase |