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
| {% comment %} | |
| Show all sizes for a product in liquid | |
| {% endcomment %} | |
| {% for option in product.options %} | |
| {% assign option_handle = option | handle %} | |
| {% assign option_index = forloop.index0 %} | |
| {% if option_handle == 'size' %} | |
| {% assign values = '' %} | |
| <ul class="{{ option_handle }}-options"> | |
| {% for variant in product.variants %} |
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
| <?php | |
| /** | |
| * Remove wysiwyg for pages that have theme managed templates | |
| */ | |
| add_action('admin_init', 'fafpp_remove_editor_init'); | |
| function fafpp_remove_editor_init() { | |
| if(isset($_GET['post'])) { | |
| $post_id = $_GET['post']; |
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
| function reloadWithQueryStringVars (queryStringVars) { | |
| var existingQueryVars = location.search ? location.search.substring(1).split("&") : [], | |
| currentUrl = location.search ? location.href.replace(location.search,"") : location.href, | |
| newQueryVars = {}, | |
| newUrl = currentUrl + "?"; | |
| if(existingQueryVars.length > 0) { | |
| for (var i = 0; i < existingQueryVars.length; i++) { | |
| var pair = existingQueryVars[i].split("="); | |
| newQueryVars[pair[0]] = pair[1]; | |
| } |
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
| // $('img.photo',this).imagesLoaded(myFunction) | |
| // execute a callback when all images have loaded. | |
| // needed because .load() doesn't work on cached images | |
| // mit license. paul irish. 2010. | |
| // webkit fix from Oren Solomianik. thx! | |
| // callback function is passed the last image to load | |
| // as an argument, and the collection as `this` |
NewerOlder