Skip to content

Commit

Permalink
fix: remove extra comission meta values for order
Browse files Browse the repository at this point in the history
  • Loading branch information
sabbir1991 committed Jan 20, 2020
1 parent c46ac72 commit 8a73d99
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions includes/Order/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,6 @@ public function maybe_split_orders( $parent_order_id ) {

do_action( 'dokan_create_parent_order', $parent_order, $seller_id );

// record admin commision
$admin_fee = dokan_get_admin_commission_by( $parent_order, $seller_id );
$parent_order->update_meta_data( '_dokan_admin_fee', $admin_fee );
$parent_order->update_meta_data( '_dokan_vendor_id', $seller_id );
$parent_order->save();

Expand All @@ -402,5 +399,4 @@ public function maybe_split_orders( $parent_order_id ) {

dokan_log( sprintf( 'Completed sub order for #%d.', $parent_order_id ) );
}

}

0 comments on commit 8a73d99

Please sign in to comment.