Skip to content

Commit

Permalink
fix: Vendor is not receiving single order mail issue fixed (#803)
Browse files Browse the repository at this point in the history
  • Loading branch information
alamgircsebd authored Mar 30, 2020
1 parent 64ca8da commit 7e2a868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/Emails/VendorNewOrder.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function trigger( $order_id, $order = false ) {
}

// check has sub order
if ( get_post_meta( $order_id, 'has_sub_order', true ) ) {
if ( $order->get_meta('has_sub_order') ) {
foreach ($sellers as $seller) {
$seller_info = get_userdata( $seller );
$seller_email = $seller_info->user_email;
Expand Down

0 comments on commit 7e2a868

Please sign in to comment.