Zip Postcode pada Ongkoskirim dari “optional” menjadi “requiered”
Updated on June 4, 2020 in Plugin Ongkos Kirim
9 on June 2, 2020

Hello,

Pada saat checkout,bagaimana caranya merubah Zip Postcode pada Ongkoskirim dari "optional" menjadi "requiered", sehingga customer wajib mengisikan kode pos ketika checkout.

Terimakasih.

  • Liked by
Support Hours:
Weekdays: 09.00 - 17.00
Weekend: Off
Sorry, our support is not available at this time. We will reply at the next working hour.

By using the forum you are agree with tonjoo studio license agreement

Moderator 0 on June 3, 2020

Halo,
Coba tambahkan kode ini pada functions.php

add_filter( ‘woocommerce_default_address_fields’, ‘customising_checkout_fields’, 1000, 1 );
function customising_checkout_fields( $address_fields ) {
$address_fields[‘postcode’][‘required’] = true;

return $address_fields;
}

http://prntscr.com/sspmn5

  • Liked by
Cancel
Support Hours:
Weekdays: 09.00 - 17.00
Weekend: Off
Sorry, our support is not available at this time. We will reply at the next working hour.

By using the forum you are agree with tonjoo studio license agreement

Message :
1 on June 3, 2020

Terimakasih atas responnya.
Sudah saya setting sesuai instruksi https://prnt.sc/ssuiqn , tetapi belum bisa merubah zip postcode required di checkout.
http://prnt.sc/ssujtw

Mohon berkenan dibantu.
Terimakasih

on June 3, 2020

Halo,
Silakan berikan credential loginnya untuk coba kami bantu

Show more replies
  • Liked by
Cancel
Support Hours:
Weekdays: 09.00 - 17.00
Weekend: Off
Sorry, our support is not available at this time. We will reply at the next working hour.

By using the forum you are agree with tonjoo studio license agreement

Message :
1 on June 3, 2020

Berikut terlampir

on June 3, 2020

Halo,
Zip postcode sudah berhasil dibuat required. Silakan cek.

Show more replies
  • Liked by
Cancel
Support Hours:
Weekdays: 09.00 - 17.00
Weekend: Off
Sorry, our support is not available at this time. We will reply at the next working hour.

By using the forum you are agree with tonjoo studio license agreement

Message :
0 on June 3, 2020

Baik terimakasih.. Well done.

  • Liked by
Cancel
Support Hours:
Weekdays: 09.00 - 17.00
Weekend: Off
Sorry, our support is not available at this time. We will reply at the next working hour.

By using the forum you are agree with tonjoo studio license agreement

Message :
1 on June 3, 2020

Apakah jika saya melakukan update plugin, setting required pada zip postcode ini berubah lagi?

on June 4, 2020

Halo,
Tidak, karena customisasi dilakukan filter, dan kode ditulis di file theme, jadi jika ada ubahan(update) di kode plugin tidak akan mempengaruhi

Show more replies
  • Liked by
Cancel
Support Hours:
Weekdays: 09.00 - 17.00
Weekend: Off
Sorry, our support is not available at this time. We will reply at the next working hour.

By using the forum you are agree with tonjoo studio license agreement

Message :
0 on June 4, 2020

Halo,

Kalau updatenya di file theme apakah juga harus ada custom di file functions theme? Terimakasih

  • Liked by
Cancel
Support Hours:
Weekdays: 09.00 - 17.00
Weekend: Off
Sorry, our support is not available at this time. We will reply at the next working hour.

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 .