Skip to content

Commit

Permalink
fix: insert order into dokan_order_table which is created by admin (#404
Browse files Browse the repository at this point in the history
)
  • Loading branch information
saimonh3 authored and sabbir1991 committed Oct 11, 2018
1 parent 88bf3e0 commit e5dfbac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/class-order-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ function __construct() {

// prevent non-vendor coupons from being added
add_filter( 'woocommerce_coupon_is_valid', array( $this, 'ensure_vendor_coupon' ), 10, 3 );

if ( is_admin() ) {
add_action( 'woocommerce_process_shop_order_meta', 'dokan_sync_insert_order' );
}
}

/**
Expand Down

0 comments on commit e5dfbac

Please sign in to comment.