I need to make my City by default
how is correct to name custom fields in function.php
also tell me how delete cache of theme, may be there is a link what need to use for it?
<?php
/**
* Theme functions and definitions.
*/
add_filter(‘woocommerce_breadcrumb_defaults’, ‘piizalian_woocommerce_breadcrumb_defaults’);
function piizalian_woocommerce_breadcrumb_defaults($args){
$args[‘home’] = _x( ‘Principala’, ‘breadcrumb’, ‘piizalian’ );
return $args;
}
add_filter( ‘woocommerce_checkout_fields’, ‘custom_checkout_fields’ );
function custom_checkout_fields( $fields ) {
$fields[‘billing’][‘billing_city’][‘default’] = ‘Bucuresti’;
$fields[‘shipping’][‘shipping_city’][‘default’] = ‘Bucuresti’;
return $fields;
}
-
This topic was modified 1 year, 10 months ago by Supporter.