Skip to content

Instantly share code, notes, and snippets.

View webaware's full-sized avatar

Ross McKay webaware

View GitHub Profile
@webaware
webaware / gf-aussie-address.php
Last active January 4, 2016 05:47 — forked from thewebprincess/gravity-au.php
Australian address fields in Gravity Forms
<?php
/*
Plugin Name: Gravity Forms Aussie Addresses
Plugin URI: https://gist.github.com/webaware/f445808d0475ea0e02f2
Description: Australian address fields in Gravity Forms
Author: thewebprincess
Author URI: https://thewebprincess.com/
Version: 0.0.1
@link https://gist.github.com/thewebprincess/7855509
@webaware
webaware / add-to-cart.php
Last active October 22, 2023 05:55 — forked from mikejolley/functions.php
WooCommerce purchase page add-to-cart with quantity and AJAX, by customising the add-to-cart template in the WooCommerce loop. See blog post for details: http://snippets.webaware.com.au/snippets/woocommerce-add-to-cart-with-quantity-and-ajax/
<?php
/**
* Loop Add to Cart -- with quantity and AJAX
* requires associated JavaScript file qty-add-to-cart.js
*
* @link http://snippets.webaware.com.au/snippets/woocommerce-add-to-cart-with-quantity-and-ajax/
* @link https://gist.github.com/mikejolley/2793710/
*/
// add this file to folder "woocommerce/loop" inside theme