Dokan actions on Listing page
-
Hi,
I need help with dokan actions on Orders page. Currently here i have two actions, to mark order complete or processing. What I want is to create action to mark order cancelled and on-hold.
Currently I have in listing.php code that does the work for changing order status to completed and processing:
if ( dokan_get_option( 'order_status_change', 'dokan_selling', 'on' ) == 'on' ) { if ( in_array( dokan_get_prop( $order, 'status' ), array( 'pending') ) ) { $actions['processing'] = array( 'url' => wp_nonce_url( admin_url( 'admin-ajax.php?action=dokan-mark-order-processing&order_id=' . dokan_get_prop( $order, 'id' ) ), 'dokan-mark-order-processing' ), 'name' => __( 'Processing', 'dokan-lite' ), 'action' => "processing", 'icon' => '<i class="fa fa-clock-o"> </i>' ); } if ( in_array( dokan_get_prop( $order, 'status' ), array( 'pending', 'on-hold' ) ) ) { $actions['complete'] = array( 'url' => wp_nonce_url( admin_url( 'admin-ajax.php?action=dokan-mark-order-complete&order_id=' . dokan_get_prop( $order, 'id' ) ), 'dokan-mark-order-complete' ), 'name' => __( 'Complete', 'dokan-lite' ), 'action' => "complete", 'icon' => '<i class="fa fa-truck" style = "color:green;font-size:17px;"> </i>' ); }
How can I define new actions to cancel order or put it on hold?
Thanks,
DejanThe page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Dokan actions on Listing page’ is closed to new replies.