This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Aggiunta campi per la richiesta fattura | |
add_filter( 'woocommerce_checkout_fields' , 'custom_additional_fields' ); | |
function custom_additional_fields( $fields ) { | |
// Richiesta fattura | |
$fields['billing']['fattura'] = array( | |
'label' => __('Richiedo la fattura', 'woocommerce'), | |
'type' => 'checkbox', | |
'placeholder' => _x('Fattura', 'placeholder', 'woocommerce'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//creo il campo codice fiscale | |
add_filter( 'woocommerce_checkout_fields' , 'codice_fiscale' ); | |
function codice_fiscale( $fields ) { | |
$fields['billing']['codice_fiscale'] = array( | |
'label' => __('Codice Fiscale', 'woocommerce'), | |
'placeholder' => _x('Codice Fiscale', 'placeholder', 'woocommerce'), | |
'required' => true, |