Hey @span4o,
Please try changing the single marks to the ‘ equivalent. Currently they are being applied as ‘
// WooCommerce Checkout Fields Hook
add_filter( 'woocommerce_checkout_fields' , 'hjs_wc_checkout_fields' );
function hjs_wc_checkout_fields( $fields ) {
$fields['billing']['billing_first_name']['label'] = 'Vārds';
return $fields;
}
Works correctly for me once this has been changed. This sometimes happens when you copy code from websites.
This should be inserted in to your functions.php. Just make sure there isn’t any namespacing as well if your using a theme such as roots sage.
Also checkout – https://docs.woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/ for the WooCommerce documentation on this matter.
Many thanks
-
This reply was modified 7 years, 9 months ago by
Adam Morgan.
-
This reply was modified 7 years, 9 months ago by
Adam Morgan.