Skip to content

Instantly share code, notes, and snippets.

Avatar

Ross McKay webaware

View GitHub Profile
@webaware
webaware / gf-aussie-address.php
Last active Jan 4, 2016 — forked from thewebprincess/gravity-au.php
Australian address fields in Gravity Forms
View gf-aussie-address.php
<?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 Apr 20, 2021 — 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/
View add-to-cart.php
<?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