Default Values in users My Account Page
-
Hey,
I’m using checkout fields for adding default values in checkout page.
But i want the same thing to be done at users My Account Edit Address page.
So i had used this code but still this is not working please helpadd_filter( ‘woocommerce_default_address_fields’ , ‘default_values_edit_address_form’ );
function default_values_edit_address_form( $fields ) {
$fields[‘city’][‘default’] = ‘Some City’;
$fields[‘country’][‘default’] = ‘Some Country’;
$fields[‘state’][‘default’] = ‘Some State’;
return $fields;
}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.