Skip to content

Instantly share code, notes, and snippets.

View javiercastrodev's full-sized avatar
🏠
Working from home

Javier Castro javiercastrodev

🏠
Working from home
View GitHub Profile
@javiercastrodev
javiercastrodev / fish_shell_android_home.txt
Created October 9, 2018 02:07 — forked from gbero/fish_shell_android_home.txt
Export $ANDROID_HOME on MacOS with Fish shell
First :
$ touch ~/.config/fish/config.fish; nano ~/.config/fish/config.fish
Copy this in the file :
set --export ANDROID $HOME/Library/Android;
set --export ANDROID_HOME $ANDROID/sdk;
set -gx PATH $ANDROID_HOME/tools $PATH;
set -gx PATH $ANDROID_HOME/tools/bin $PATH;
@javiercastrodev
javiercastrodev / woo-anadir-checkbox-checkout-admin-pedido.php
Created October 13, 2022 01:09 — forked from Oscar-Abad-Folgueira/woo-anadir-checkbox-checkout-admin-pedido.php
WooCommerce Snippet: Añadir campo checkbox al checkout y mostrar en el admin del pedido.
<?php
/**
* @snippet WooCommerce Snippet: Añadir campo checkbox al checkout y mostrar en el admin del pedido.
* @author Oscar Abad Folgueira
* @author_url https://www.oscarabadfolgueira.com
* @snippet_url https://www.oscarabadfolgueira.com/anadir-un-campo-de-checkbox-opcional-en-el-checkout-de-woocommerce-y-mostrar-en-el-admin-del-pedido
*/
// Añadir un campo checkbox al checkout y al anadir_estado_pedido_enviado_a_estados
add_action( 'woocommerce_review_order_before_submit', 'anadir_campo_checkbox_checkout' );