Thanks. I have attempted this, but it says, “Your PHP code changes were rolled back due to an error on line 78 of file wp-content/themes/bridge/framework/modules/woocommerce/woocommerce-config.php. Please fix and try saving again.
Cannot redeclare custom_override_checkout_fields() (previously declared in wp-content/themes/bridge-child/functions.php:12)”
The file that is mentioned, on line 78, has the following:
function custom_override_checkout_fields($fields) {
//billing fields
$args_billing = array(
‘first_name’ => __(‘First name’,’qode’),
‘last_name’ => __(‘Last name’,’qode’),
‘company’ => __(‘Company name’,’qode’),
‘address_1’ => __(‘Address’,’qode’),
’email’ => __(‘Email’,’qode’),
‘phone’ => __(‘Phone’,’qode’),
‘postcode’ => __(‘Postcode / ZIP’,’qode’),
‘city’ => __(‘Town / City’,’qode’),
‘state’ => __(‘State’,’qode’)
);
//shipping fields
$args_shipping = array(
‘first_name’ => __(‘First name’,’qode’),
‘last_name’ => __(‘Last name’,’qode’),
‘company’ => __(‘Company name’,’qode’),
‘address_1’ => __(‘Address’,’qode’),
‘postcode’ => __(‘Postcode / ZIP’,’qode’),
‘city’ => __(‘Town / City’,’qode’),
‘state’ => __(‘State’,’qode’)
);
//override billing placeholder values
foreach ($args_billing as $key => $value) {
$fields[“billing”][“billing_{$key}”][“placeholder”] = $value;
}
//override shipping placeholder values
foreach ($args_shipping as $key => $value) {
$fields[“shipping”][“shipping_{$key}”][“placeholder”] = $value;
}
return $fields;
}
Is there a means of working around this?