customizing woocommerce registration/checkout address format

Completed Posted 2 years ago Paid on delivery
Completed Paid on delivery

hi, i'm trying to customize woocommerce address format to "Turkish Address format" with dropdown province and dropdown districts. i'm also using wpforms for the registration form.

what i am trying to do is first to customize the core woocommerce address format. and then try to customize the wpforms address format.

what i need is for each province/city chosen in the dropdown menu. the other dropdown menu shows the districts in that province/city. i was able to find a way to find a php code that converts the city text input to a dropdown input. what is missing is a javascript that enables the conditional 2nd dropdown input for the district.

The code for checkout address customization:

add_filter( 'woocommerce_checkout_fields' , 'override_checkout_city_fields' );

function override_checkout_city_fields( $fields ) {

$option_cities = array(

'' => __( 'İlçe' ),

'Afyonkarahisar_merkezi' => 'Afyonkarahisar - merkezi',

'Başmakçı' => 'Başmakçı',

'Bayat' => 'Bayat',

'Bolvadin' => 'Bolvadin',

'Çay' => 'Çay',

'Çobanlar' => 'Çobanlar',

);

$fields['billing']['billing_city']['type'] = 'select';

$fields['billing']['billing_city']['options'] = $option_cities;

$fields['shipping']['shipping_city']['type'] = 'select';

$fields['shipping']['shipping_city']['options'] = $option_cities;

return $fields;

}

i also found out this method:

[login to view URL]

note: only people with similar experience will be accepted for this task.

Thank you.

PHP WordPress JavaScript WooCommerce CSS

Project ID: #29948645

About the project

9 proposals Remote project Active 2 years ago

Awarded to:

(223 Reviews)
8.0

9 freelancers are bidding on average $43 for this job

aftabyounas

Hey I am a Wordpress expert and have great command working with forms and creating custom forms and have done that in the past for displaying conditional fields so feel free to contact

$50 USD in 1 day
(351 Reviews)
7.4
shayona163

hello i am expert in wordpress and woocommerce i have 8 year experience in this field you will satisfy with my work i can start work right now thanks

$50 USD in 1 day
(261 Reviews)
7.2
WebcoderSaurabh

Hi , I read through the job details extremely carefully and I am absolutely sure that I can do the project very well.I have more than 4+years marvellous experienced in Web Technologies. I am fully dedicated and enthus More

$40 USD in 24 days
(63 Reviews)
6.6
rockviju9

Hello, let me handle this, I can do the task within 1 day. I will modify the registration form as I'm expert in Woo-commerce to do changes, modifying etc. Thank you

$65 USD in 1 day
(54 Reviews)
5.4
SanjayExpert

Hi there ⭐ ✓ Woocommerce Registeration Problem done right away ( 27 years Experience in this ) I have read all the instructions and details carefully and i am ready to start now. You can check my Portfolio for More

$23 USD in 1 day
(15 Reviews)
3.7
sachinsaini10112

Hello Dear, I've read your project summary your expectations and I am absolutely sure that I can do the project very well. We can discuss in detail via chat. We have extensive experience in designing and developing W More

$35 USD in 7 days
(0 Reviews)
0.0
ShamimNjr

Hi, Sir I'm Interested. I have two years experience in wordpress customization and Devolvement. I will complete your site with my responsible

$25 USD in 5 days
(0 Reviews)
0.0