I think this is what I might have done:
open the app/schemas/notifications/events.php file
I changed:
'company_id' => DataValue::create('order_info.company_id')
to
and also
'from' => 'default_company_orders_department'
so it now looks like this:
$order_event = [
'id' => 'order.status_changed',
'group' => 'orders',
'name' => [
'template' => 'event.order.status_changed.name',
'params' => [
'[status]' => '',
],
],
'data_provider' => [OrderDataProvider::class, 'factory'],
'receivers' => [
UserTypes::CUSTOMER => [
MailTransport::getId() => MailMessageSchema::create([
'area' => SiteArea::STOREFRONT,
'from' => 'default_company_orders_department',
'to' => DataValue::create('order_info.email'),
'template_code' => DataValue::create('template_code'),
'legacy_template' => 'orders/order_notification_customer.tpl',
'company_id' => 0,
'storefront_id' => DataValue::create('order_info.storefront_id'),
'language_code' => DataValue::create('order_info.lang_code', CART_LANGUAGE)
]),
],
So the resultant impact is that the orders shows as coming from the store rather than from the vendor.