Filter JNE dan POS
Updated on April 13, 2018 in Plugin Ongkos Kirim
7 on March 11, 2018

Halo,

Saya mau memfilter ongkir untuk JNE YES hanya tersedia untuk wilayah provinsi DKI Jakarta dan Jawa Timur saja lalu pilihan JNE International tidak berlaku dan yang kedua saya ingin menggunakan POS untuk ongkir yang tampil hanya EMS saja dan hanya berlaku untuk selain negara Indonesia saja. Terima kasih.

Versi WordPress 4.9.4
Versi Woo Ongkir 2.1.3
Versi WooCommerce 3.3.1

Theme : woodmart

  • 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 March 12, 2018

Halo andwe,
Mohon maaf kami tidak melayani custom code. Jika Anda ingin memfilter kita sudah sediakan panduannya di halaman FAQ:
https://forum.tonjoostudio.com/thread/plugin-ongkir-f-a-q-troubleshot/
cari di bagian filter kurir.
Silakan modifikasi codenya sesuai dengan kebutuhan Anda.
Terima kasih

  • 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 March 12, 2018

Saya sudah membaca itu sebelumnya tapi maaf saya kurang mengerti untuk filter negara. Bisa tolong ditambahi untuk filter negara?

on March 12, 2018

Mohon maaf tidak bisa mas, karena itu sudah masuk custom code (menambah fitur) yang tidak bisa kami penuhi

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 April 13, 2018

Baik saya bisa mengerti untuk yang sebelumnya. Bagaimana jika filter untuk JNE dan EMS saja?


Untuk ems ditambahi dengan apa ya? Terima kasih.

  • 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 April 13, 2018

<?php
add_filter(‘pok_shipping_costs’, ‘filter_rajaongkir_courier’, 10, 2);
function filter_rajaongkir_courier($rates, $destination) {
$filtered_rates = array();
$selected_courier = array(
‘JNE – REG’,
‘JNE – OKE’,
‘JNE – YES’
);
foreach ($rates as $r) {
if (in_array($r[‘label’], $selected_courier)) {
$filtered_rates[] = $r;
}
}
return $filtered_rates;
}
?>

Untuk EMS ditambah dengan apa ya?

on April 13, 2018

Untuk pilihan nama-nama layanan bisa dilihat dengan cara mencoba melakukan checkout.
Misalnya seperti ini:
http://prntscr.com/j4o4zh
maka codenya adalah “POS – EMS BARANG”

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 April 13, 2018

Wah, terima kasih banyak ya Mas Agep akhirnya sudah bisa!

Mungkin ada yang memerlukan yang lain. Kalau manggil ‘JNE – REG’ ngga muncul jadi perlu diketikin lengkap, ‘JNE – REG (Layanan Reguler)’

<?php
add_filter(‘pok_shipping_costs’, ‘filter_rajaongkir_courier’, 10, 2);
function filter_rajaongkir_courier($rates, $destination) {
$filtered_rates = array();
$selected_courier = array(
‘JNE – CTC (JNE City Courier)’,
‘JNE – OKE (Ongkos Kirim Ekonomis)’,
‘JNE – REG (Layanan Reguler)’,
‘JNE – YES (Yakin Esok Sampai)’,
‘POS – EMS BARANG’
);
foreach ($rates as $r) {
if (in_array($r[‘label’], $selected_courier)) {
$filtered_rates[] = $r;
}
}
return $filtered_rates;
}
?>

  • 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 .