Skip to content

Instantly share code, notes, and snippets.

View Tonybui26's full-sized avatar

Tony Bui Tonybui26

View GitHub Profile
<?
# MIT license, do whatever you want with it
#
# This is my invoice.php page which I use to make invoices that customers want,
# with their address on it and which are easily printable. I love Stripe but
# their invoices and receipts were too wild for my customers on Remote OK
#
require_once(__DIR__.'/../vendor/autoload.php');
@Tonybui26
Tonybui26 / WooCommerce - Add a special field to the checkout, order emails and user or order meta
Last active October 18, 2017 01:17 — forked from mikejolley/gist:1604009
WooCommerce - Add a special field to the checkout, order emails and user/order meta
/**
* Override Custom Checkout Page Fields
**/
add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
function custom_override_checkout_fields( $fields ) {
/////////Add fields to checkout
$fields['billing']['billing_position'] = array(
'label' => __('Position', 'woocommerce'),
@Tonybui26
Tonybui26 / Installation NPM and Node.html
Last active April 6, 2018 06:01
Installation NPM and Node.js
http://blog.teamtreehouse.com/install-node-js-npm-mac
@Tonybui26
Tonybui26 / 0_reuse_code.js
Last active October 29, 2016 04:25
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console