Skip to content

Instantly share code, notes, and snippets.

{% find_products category_name:'Legacy of Darkness' order:sell_price do products limit:8 reverse %}
{% for product in products %}
<li class="product">
<a href="{{ product.buylist_aware_url }}">
<span class="image"><img src="{{ product.main_photo | photo_url: "medium" }}" /></span>
<span class="name">{{ product.name }}</span>
<span class="price">{{ product.sell_price }}</span>
</a>
</li>
{% find_products category_name:'Magic Products' order:sell_price do products limit:8 %}
<div class="product-container large-12 columns">
<ul class="to-swipe medium-grid4x large-grid4x">
{% include "plugins/gridlist/markup" with product %}
</ul>
</div>
{% endfind_products %}
@rdallaire
rdallaire / custom.css
Created September 17, 2013 20:06
alert
/* ==============================================================================
/* ====== ALERT Overlay
/* ============================================================================= */
.alert-overlay {
background: rgba(0,0,0,0.8);
height: 200px;
left: 50%;
margin-left: -100px;
margin-top: -100px;
@rdallaire
rdallaire / gist:6556249
Created September 13, 2013 21:21
cssheading
zencoding custom
type 'cssheading' and make it show
/* ==============================================================================
/* ====== CSS MAIN HEADING
/* ============================================================================= */
updateCart: function() {
console.log('update cart');
//
var items = $('ul.cart-line-items').find('li');
var itemsL = items.length;
var i = 0;
@rdallaire
rdallaire / _dynamic_displays.liquid
Created August 28, 2013 17:19
Changeable Liquid Heading
{% tagged_with 'yugiohheading1' do products limit:1 %}{% for product in products %}
<h4 class="widgettitle">{{ product.name }}</h4>
{% endfor %}{% endtagged_with %}
<div id="pagination">
{% if pages.page_count > 1 %}
{% if pages.current != pages.first %}
<a href="{{ category | category_paginated_url: pages.first }}">First</a>
{% endif %}
{% if pages.current.previous %}
<a href="{{ category | category_paginated_url: pages.current.previous }}">Prev</a>
{% endif %}
{% comment %}
<!--
Super Games Inc
-----------------------------------------------------------
Designed and Developed by CrystalCommerce.com
Design & Development Ross Dallaire
Josh McDonald
Megan Plummer
@rdallaire
rdallaire / main.js
Last active December 20, 2015 17:09
Search Drop Down for Stores/ blogs
searchHandler: function() {
var searchForm = $('#search-form'), // ID on the form tag
searchInput = $('#search-input'), // ID on the search input box
searchOptions = $('#search-options'); // ID on the html select tag
// Set the default to the store
searchForm.attr('action', 'http://supergamesinc.dev.crystalcommerce.com/products/search');
searchInput.attr('name', 'q');
/*****************************************************************************************
* SIDE-BY-SIDE CATEGORY TREE AND BUYLIST CATEGORY TREE
*
* This ajax script retrieves either the store's buylist category tree or the regular
* category tree (based on which URL you are on) and inserts it into your theme. This
* enables your site to display BOTH category trees side by side.
*
* To Use:
* 1) Copy/paste the contents of for_theme.txt file into your theme.liquid file.
* 2) Edit the two category tree ID's indicated below (if necessary).