Format Alamat
Updated on March 21, 2020 in Plugin Ongkos Kirim
Premium  2 on March 20, 2020

Saya coba ubah format alamat penagihan tapi kenapa di bagian kecamatan tidak muncul dan kota/kabupaten jadi angka.

add_filter( ‘woocommerce_localisation_address_formats’, ‘woocommerce_custom_address_format’, 20 );
function woocommerce_custom_address_format( $formats ) {
$formats[ ‘ID’ ] = "{name_upper}\n{address_1}\n{district}\n{city}\n{state}\n{postcode}";

return $formats;
}

https://prnt.sc/rjf22r

Mohon bantuannya terimakasih

  • Liked by
By using the forum you are agree with tonjoo studio license agreement
Moderator 0 on March 20, 2020

Halo,
Coba gunakan placeholder berikut ini untuk mengganti alamat
{pok_district} untuk kecamatan
{pok_city} untuk kabupaten
{pok_state} untuk provinsi

Salam,
Tonjoostudio support

  • Liked by
Cancel
By using the forum you are agree with tonjoo studio license agreement
Message :
Premium  0 on March 21, 2020

Oke sip berhasil. Makasih banyak mas.

  • Liked by
Cancel
By using the forum you are agree with tonjoo studio license agreement
Message :
Loading more replies
You are not logged in

Please login here or simply sign up here .