Hi Guys
Thanks for your effort and I’m sorry if sometimes I put down crazy stuff (btw I’m going to mark as resolved the previous topic)!
I put some changes in the functions.php to customize the billing section but whenever I update the theme this changes go wested and I have to put hands again into the file.
Same problem with the Google Analytics Tag (Using Tag Manager) within the header.php (And this is a huge issue)!
As the website is made in 2 languages with two different wordpress installations, you understand that I can get crazy with this!
Is there a way to make the changes permanent?
Can you help me?
Thanks so much!!
functions.php Changes:
/* Add the field to the checkout
================================================== */
// Hook in
add_filter( ‘woocommerce_checkout_fields’ , ‘custom_override_checkout_fields’ );
// Our hooked in function – $fields is passed via the filter!
function custom_override_checkout_fields( $fields ) {
$fields[‘billing’][‘billiing_codicefiscale/piva’] = array(
‘label’ => __(‘Codice Fiscale/P.Iva’, ‘woocommerce’),
‘placeholder’ => _x(‘Codice Fiscale o Partita Iva’, ‘placeholder’, ‘woocommerce’),
‘required’ => true,
‘class’ => array(‘form-row-wide’),
‘clear’ => true
);
return $fields;
}