For the latest versions open the following file
app/schemas/notifications/events.php
and replace
UserTypes::CUSTOMER => [ MailTransport::getId() => MailMessageSchema::create([ 'area' => SiteArea::STOREFRONT, 'from' => 'company_orders_department', 'to' => DataValue::create('order_info.email'), 'template_code' => DataValue::create('template_code'), 'legacy_template' => 'orders/order_notification.tpl', 'company_id' => DataValue::create('order_info.company_id'), 'storefront_id' => DataValue::create('order_info.storefront_id'), 'language_code' => DataValue::create('order_info.lang_code', CART_LANGUAGE) ]), ],with
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.tpl', 'company_id' => DataValue::create('order_info.company_id'), 'storefront_id' => DataValue::create('order_info.storefront_id'), 'language_code' => DataValue::create('order_info.lang_code', CART_LANGUAGE) ]), ],Then clear cache
(!) Not tested
Hi eComLabs,
Thanks for your response, it actually worked.
Once again big thanks.
Regards,
LC