Cara memberi filter untuk RajaOngkir
Updated on May 24, 2017 in Plugin
7 on April 25, 2017

Selamat pagi team tonjoo

saya mempunyai API rajaongkir, tapi didalam pengaturan admin tidak ada filter untuk memilih layanan exspedisi
saya ingin menampilkan jne oke,reg, yes dan tiki yang ECO (economis),reg (reguler),ONS (Over Night Service). dan saya telah membaca forum dengan tema "RajaOngkir Tidak Bisa Filter?" yang diposting pada 10 april 2017, disana ada alternatif menggunakan hook.. dengan coding yg telah dijelaskan oleh pihak tonjoo, bisa kah saya meminta bantuan untuk coding lengkap yang saya maksud diatas, karena coding yang dibuat pada pembahasan"RajaOngkir Tidak Bisa Filter?" hanya ada jne, belum ada tiki nya.. dan satu lagi..
untuk memasukkan coding tersebut, saya harus memasukkan ( copas) dibagian mana ya, karena saya tidak mengerti bahasa pemrograman dan saya bingung.mohon bantuannya ya, saya sangat memerlukan hal tersebut.

Terima Kasih

  • 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 April 25, 2017

Halo

Karena sebenarnya plugin kami tidak men-support filter utk rajaongkir, satu2nya cara adalah dengan memodifikasi sedikit kode nya. Tetapi perlu di perhatikan, kalau plugin kami update, maka modifikasi nya juga akan terhapus.

Solusi terbaik yang bisa kami berikan adalah, menggunakan API resmi dari kami saja. Karena sudah terdapat fitur filter nya 🙂

Trims

  • 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 25, 2017

selamat pagi team tonjoo

Maaf sebelumnnya saya tidak memberitahu satu hal lagi, kenapa saya memakai api rajaongkir, karena waktu saya mencoba API dari tonjoostudio, ada daerah yang tidak muncul ongkos kirimnya, saya memilih kepulauan riau,kota batam,kota batam.. dan waktu muncul hanya ekspedisi tiki saja yang muncul.. saya cek di web jne.. untuk wilayah yang saya sebutkan diatas. ada layanan jne-nya, setelah saya menggunakan API rajaongkir.. ternyata keluar ongkos JNE nya, itulah kenapa saya menggunakan API rajaongkir, tapi disisi lain dengan memakai API rajaongkir, tidak ada menu untuk filternya..
mungkin ada masukkan, untuk mengatasi hal ini

  • 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 :
Moderator 0 on April 25, 2017

Halo,

Sebelumnya mohon maaf atas keterbatasan data API kami. Untuk kenapa tidak adanya filter kurir untuk API rajaongkir, itu dikarenakan rajaongkir tidak menyediakan API untuk fitur tersebut.

Jika Anda developer, filter kurir pada rajaongkir masih dapat dilakukan dengan cara menambahkan kode filter pada functions.php. Berikut contoh kodenya:

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

Semoga membantu.

  • 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 May 23, 2017

malam team tonjoo

saya masih bingung meng add kode filter. ketika saya meng addkan pada functions.php malah error wp-adminnya..mungkin detailnya ditaruh dibagian mana dari kode yang begitu banyak di form functions.php.dan saya bukan developer.
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 :
Moderator 0 on May 24, 2017

Halo

Bisa di copas kesini error nya apa?

Bisa di taruh di bawah function lain pak. Perhatikan kurung kurawal (brackets) nya agar tidak tercampur.

Agak susah utk lokasi pastinya, karena setiap theme, function nya kadang berbeda-beda isinya.

Trims

  • 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 May 24, 2017

Dear Team Tonjoo

berikut error nya

This page isn’t working

www.tasimportkorea.id is currently unable to handle this request.
HTTP ERROR 500

saya mengcopas kode itu dibagian bawah pada form functions.php yang ada dithemes, tapi ketika saya hilangkan kode filternya wpadmin saya kembali normal, itulah sebabnya saya bingung untuk ditaruh dimana kode filter tersebut.

saya cek pada cpanel pada baris ini if (in_array($r[‘label’], array(‘JNE – REG’,’JNE – OKE’,’JNE – YES’))) { ada tulisan "syntax error, unexpected T_STRING,expecting ‘)’
padahal saya copas kode filter persis yang diberikan diatas..

  • 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 :
Moderator 0 on May 24, 2017

Halo,

Coba perhatikan tanda petiknya. Kalo Anda copas dari forum ini memang tanda petiknya jadi aneh.
Silahkan copas code dari sini saja: https://goo.gl/HAQvaj

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