php - checkout page field rename in woocommerce -


i trying rename field text on checkout page woocommerce code using.

add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );   function custom_override_checkout_fields( $fields ) {      $fields['billing']['billing_address_1']['label'] = 'address (no po boxes)';       return $fields; } 

now issue while uploading page address (no po boxes) showing page load start shows address again confused why showing that

i got answer update label in woocommerce/includes/class-ec-countries.php. there can see code on line no.509 code in array

'address_1' => array(             'label'       => __( 'address', 'woocommerce' ),             'placeholder' => _x( 'street address', 'placeholder', 'woocommerce' ),             'required'    => true,             'class'       => array( 'form-row-wide', 'address-field' )         ), 

i changes address required text , working awesome


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -