October 24, 2017 at 12:41 pm
I went to add a snippet to change my woocommerce price font size,color and to make it bold.
After I did that I got a syntax error. I got the hosting company to change themes so I could get back in.
I removed what I thought I put in still I am getting syntax error on line 29 but there is not a line 29.
this is what is in my function php
<?php
add_filter( ‘woocommerce_billing_fields’, ‘wc_npr_filter_phone’, 10, 1 );
function wc_npr_filter_phone( $address_fields ) {
$address_fields[‘billing_phone’][‘required’] = false;
return $address_fields;
}
// 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 ) {
unset($fields[‘billing’][‘billing_phone’]);
return $fields;
}
?>
I am not sure how to handle this.
When I tried to use The Virtue theme it had the same error.
Thanks for your support Tom