Skip to content

Instantly share code, notes, and snippets.

Jordan Haines Jordanairwave

View GitHub Profile
malarkey / Contract Killer
Last active Jul 13, 2020
The latest version of my ‘killer contract’ for web designers and developers
View Contract Killer

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

remy / gist:2484402
Created Apr 24, 2012
View gist:2484402
* author Remy Sharp
* url
(function ($) {
$.fn.marquee = function (klass) {
var newMarquee = [],
last = this.length;
mikejolley / gist:2044109
Last active Jun 8, 2020 — forked from jameskoster/header.php
WooCommerce - Update number of items in cart and total after Ajax
View gist:2044109
// Ensure cart contents update when products are added to the cart via AJAX (place the following in functions.php)
add_filter( 'woocommerce_add_to_cart_fragments', 'woocommerce_header_add_to_cart_fragment' );
function woocommerce_header_add_to_cart_fragment( $fragments ) {
<a class="cart-contents" href="<?php echo wc_get_cart_url(); ?>" title="<?php _e( 'View your shopping cart' ); ?>"><?php echo sprintf (_n( '%d item', '%d items', WC()->cart->get_cart_contents_count() ), WC()->cart->get_cart_contents_count() ); ?> - <?php echo WC()->cart->get_cart_total(); ?></a>
You can’t perform that action at this time.