Data Kode Kurir Dalam Order Record
Updated on January 22, 2018 in Plugin Ongkos Kirim
4 on January 22, 2018

Halo,

Saya memiliki lisensi woongkir multi license dan mengaktifkan API rajaongkir premium.

Saya memiliki pertanyaan:

Dimana kah woo ongkir menyimpan data kode kurir?

Contoh kode kurir: (jne, pos, tiki dsb)

Saya sudah mencoba melihat semua post meta dari data order:

wc_get_order($post_id_order);

https://docs.woocommerce.com/wc-apidocs/function-wc_get_order.html

namun tidak menemukan data yang dimaksud.

Jika memang tidak ada, mohon saran atau contoh script function untuk menyimpan kode kurir tersebut kedalam post meta pada data order, karena ketika selesai checkout Saya tidak tahu dimana kode kurir tersebut disimpan.

Terima kasih sebelumnya.

  • 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

0 on January 22, 2018
  • 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 January 22, 2018

Hi madness.hustler,
Silakan pakai kode berikut untuk melihat data kurir:


$order = wc_get_order($order_id);
print_r( $order->get_items( ‘shipping’ ) );

  • 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 January 22, 2018

Iya output disana hanya didapat nama kurirnya, bukan kode kurir. Dimanakah disimpan kode kurirnya?

Contoh kode kurir: (jne, pos, tiki dsb)
on January 22, 2018

untuk kode tidak kami simpan, jadi cuma tersedia data itu.

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 :
Loading more replies
You are not logged in

Please login here or simply sign up here .