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 you want your anchor to still appear to be clickable: | |
$("a").removeAttr("href").css("cursor","pointer"); | |
And if you wanted to remove the href from only anchors with certain attributes (eg ones that just have a hash mark as the href - this can be useful in asp.net) | |
$("a[href='#']").removeAttr("href").css("cursor","pointer"); |
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> | |
// (c) Copyright 2011 Caroline Schnapp. All Rights Reserved. Contact: [email protected] | |
// See http://wiki.shopify.com/Linked_Options | |
Shopify.optionsMap = {}; | |
Shopify.updateOptionsInSelector = function(selectorIndex) { | |
var key = jQuery('.single-option-selector:eq(0)').val(); | |
if (selectorIndex === 2) { | |
key += ' / ' + jQuery('.single-option-selector:eq(1)').val(); | |
} | |
var selector = jQuery('.single-option-selector:eq(' + selectorIndex + ')'); |
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
# http://forums.shopify.com/categories/6/posts/42926 | |
# This is a fairly simple mechanize script to create a few hundred or so shopify discounts from a CSV of groupon codes. | |
# You'll want to change all of the "changeme" values to your own. | |
# The script expects there to be a groupon_codes.csv in the same directory. | |
# | |
# The groupons_code.csv should look like this: | |
# 8m7677 | |
# 8m6749 | |
# 8m5398 | |
# 8m7699 |
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
{% assign maxwords = 30 %} | |
{% if template == 'product' %} | |
{% if collection %} | |
<link rel="canonical" href="{{ shop.url }}{{ product.url }}" /> | |
{% endif %} | |
{% assign mf = product.metafields.meta_data %} | |
{% unless mf == empty %} | |
{% for mf in product.metafields.meta_data' %} | |
{% capture key %}{{ mf | first }}{% endcapture %} | |
{% if key == '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
<a href="{{ item.product.url }}" title="{{ item.product.title | escape }}"> | |
{% assign found = false %} | |
{% for img in item.product.images %} | |
{% if found == false and item.variant.title contains img.alt %} | |
<img src="{{ img | product_img_url: 'thumb' }}" alt="{{ item.alt | escape }}" /> | |
{% assign found = true %} | |
{% endif %} | |
{% endfor %} | |
{% if found == false %} | |
<img src="{{ item.product.featured_image | product_img_url: 'thumb' }}" alt="{{ item.product.featured_image.alt | escape }}" /> |
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 template contains 'product' %} | |
{% assign size_options = 'size,taille' | split: ',' %} | |
{% assign size_chart_text_link = 'Size chart' %} | |
{% assign has_size = false %} | |
{% assign size_index = 0 %} | |
{% for option in product.options %} | |
{% assign downcased_option = option | downcase %} | |
{% if has_size == false and size_options contains downcased_option %} | |
{% assign has_size = true %} | |
{% assign size_index = forloop.index0 %} |
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 (location.protocol !== "https:") { | |
location.protocol = 'https:'; | |
} |
OlderNewer