How To Change Email Order Notification To Customer From Name

Hello,

In the email notification to customer on orders, the "from" field shows the vendor's name, but using the marketplace email address (because I selected this option in the settings).

I would like it to instead show the name of our marketplace. How to do this?

Thanks,

Grace

This is a bug. We corrected it with one of our customers. Please contact CS-Cart team or make a post in the bug tracker

This is a bug. We corrected it with one of our customers. Please contact CS-Cart team or make a post in the bug tracker

Thanks, have done this, and also managed to change this directly in the php file as well.

Thanks, have done this, and also managed to change this directly in the php file as well.

Please share the solution here. Hope it will be helpful for someone

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
'company_id' => 0

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.

Thank you for letting us know it.