Where is the .php
file located to edit the billing fields?
I want to change the text for each heading; for example Last Name
to Family Name
.
This is using Woocommerce in the Avada
theme.
I’ve managed to change the fields using this code, but city, state and postcode won’t change:
function custom_override_checkout_fields( $fields ) {
$fields['billing']['billing_first_name']['label'] = 'å';
$fields['billing']['billing_last_name']['label'] = 'å§';
$fields['billing']['billing_email']['label'] = 'ã¡ã¼ã«ã¢ãã¬ã¹';
$fields['billing']['billing_phone']['label'] = 'é»è©±çªå·';
$fields['billing']['billing_country']['label'] = 'å½';
$fields['billing']['billing_city']['label'] = 'å!';
$fields['billing']['billing_city']['placeholder'] = 'å¸çºæ';
$fields['billing']['billing_state']['label'] = 'é½éåºç';
$fields['billing']['billing_state']['placeholder'] = 'é½éåºç';
$fields['billing']['billing_postcode']['label'] = 'éµä¾¿çªå·';
$fields['billing']['billing_postcode']['placeholder'] = 'éµä¾¿çªå·';
$fields['billing']['billing_address_1']['label'] = 'ä½æ';
$fields['billing']['billing_address_1']['placeholder'] = 'ä½æ';
$fields['billing']['billing_address_2']['placeholder'] = 'ã¢ãã¼ãåç';
return $fields;
}
add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
Try increase your priority used: