Skip to content

Commit

Permalink
add get seller by order support
Browse files Browse the repository at this point in the history
  • Loading branch information
Aunshon committed Sep 26, 2023
1 parent 04459cf commit 6544d3b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions includes/Integrations/WcVendors/OrderMigrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,17 @@ public function process_refund( $child_order, $seller_id, $from_suborder = true
]
);
}

/**
* Returns all sellers of an order.
*
* @since DOKAN_MIG_SINCE
*
* @param int $order_id
*
* @return array
*/
public function get_seller_by_order( $order_id ) {
return dokan_get_sellers_by( $order_id );
}
}
2 changes: 2 additions & 0 deletions includes/Integrations/Wcfm/OrderMigrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,8 @@ public function split_parent_order_shipping( $applied_shipping_method, $order_id
/**
* Returns all sellers of an order.
*
* @since DOKAN_MIG_SINCE
*
* @param int $order_id
*
* @return array
Expand Down

0 comments on commit 6544d3b

Please sign in to comment.