Order Functions

Unread Order Counter

Penggunaan :

lsdc_order_unread_counter();

menambah penghitung order yang belum dibaca

 


Check Order Status

Penggunaan :

function lsdc_license_auto_generate_license( $order_id ){
    //insert post based on event completed
}
add_action( 'lsdcommerce_order_status_completed', 'lsdc_license_auto_generate_license' );

Kamu bisa menambah action pada saat event status berganti

Change Order Status

Penggunaan :

lsdc_order_status( $order_id, $status, $notification = true )
Usage :: lsdc_order_status( 123, 'paid' ); // change order status with id = 123, and status paid

kamu bisa merubah status pesanan berdasarkan id pesanan

 


Order Status

new 		: New Order
paid 		: Paid Order ( Trigger by Admin / Auto Confirmation )
canceled 	: Order canceled cause empty stock or failed purchase
processed 	: Order processing by admin 
shipped 	: Order already shipped and on delivery to customer
completed 	: Order complete, and customer no complain
refunded 	: Order refunded

Status Pesanan


Get Order ID by Hash

Penggunaan :

lsdc_order_ID( $hash );
Usage : lsdc_order_ID( 'fb0231sac13dsda123ba' );

kamu bisa mendapatkan ID pesanan berdasarkan Hash pesanan

Was this page helpful?

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *