Orders Email Sending To Customer

Something weird. Email send out to customers for notifications are always have title of "Vendor" instead of the our store itself.

Lets stay my store name is ABC.com and a vendor name is xyz. A customer placed order and received email notification stating sender name xyz (vendor) and email subject as well to store name.

Default;

XYZ : Order No. 654454

I would like to have similar

ABC : Order No. 654454

Same with email sender name ABC instead of XYZ.

Anyone can help to change this quickly?

app/functions/fn.cart.php

Try to replace:

        if ($notify_user == true) {
        Mailer::sendMail(array(
            'to' => $order_info['email'],
            'from' => 'company_orders_department',
            'data' => array(
                'order_info' => $order_info,
                'shipments' => $shipments,
                'use_shipments' => $use_shipments,
                'order_status' => $order_status,
                'payment_method' => $payment_method,
                'status_settings' => $status_settings,
                'profile_fields' => $profile_fields,
                'secondary_currency' => $secondary_currency,
                'take_surcharge_from_vendor' => $take_surcharge_from_vendor
            ),
            'tpl' => 'orders/order_notification.tpl',
            'company_id' => $order_info['company_id'],
        ), 'C', $order_info['lang_code']);

with

        if ($notify_user == true) {
        Mailer::sendMail(array(
            'to' => $order_info['email'],
            'from' => 'default_company_orders_department',
            'data' => array(
                'order_info' => $order_info,
                'shipments' => $shipments,
                'use_shipments' => $use_shipments,
                'order_status' => $order_status,
                'payment_method' => $payment_method,
                'status_settings' => $status_settings,
                'profile_fields' => $profile_fields,
                'secondary_currency' => $secondary_currency,
                'take_surcharge_from_vendor' => $take_surcharge_from_vendor
            ),
            'tpl' => 'orders/order_notification.tpl',
            'company_id' => 0,
        ), 'C', $order_info['lang_code']);

Then clear cache

(!) Not tested

Thanks eCom team for assistance.

When I set it for 'default_company_orders_department' it fix the issue. But what I realized it actually send email to your main admin account login email. Which is huge security risk.

I tried using specific email instead of that hook/code, and that worked. However email delivered to customer doesn't show header instead.

Email customer recieves like sent by : abc@123.com.

How can I use any secondary admin account, which I keep disabled for login purpose?

Thanks eCom team for assistance.

When I set it for 'default_company_orders_department' it fix the issue. But what I realized it actually send email to your main admin account login email. Which is huge security risk.

I tried using specific email instead of that hook/code, and that worked. However email delivered to customer doesn't show header instead.

Email customer recieves like sent by : abc@123.com.

How can I use any secondary admin account, which I keep disabled for login purpose?


Do you mean the "from" field? In this case you can specify e-mail in the code:

'from' => 'youremail@mail.com',

or change theOrder department e-mail address on the Settings -> Company page


Do you mean the "from" field? In this case you can specify e-mail in the code:

'from' => 'youremail@mail.com',

or change theOrder department e-mail address on the Settings -> Company page

That's what I was looking for. Thanks eCom team.

You are welcome!

I have same problem but my cs cart version is 4.11.2

https://forum.cs-car...ng-to-customer/

I tried this and change in fn.cart.php but nothing happen.

please provide solution

for example my store name is ABC.com and a vendors name is xyz,abcd etc. when customer placed order and received email notification stating sender name xyz (vendor) and email subject as well xyz.

Default;

XYZ : Order No. 654454

I would like to have similar

(store name) ABC : Order No. 654454

Same with email sender name ABC instead of XYZ.

For latest versions please try the following solution

app/schemas/notifications/events.php (~ line #507)

try to replace

'from'            => 'company_orders_department',

with

'from'            => 'default_company_orders_department',

(!) Not tested

Thanks , Its working :)

For latest versions please try the following solution

app/schemas/notifications/events.php (~ line #507)

try to replace

'from'            => 'company_orders_department',

with

'from'            => 'default_company_orders_department',

(!) Not tested

Hi. I have the same problem, but the version is different and I can't solve it. Be sure to replace the logo and email subject with your marketplace name.

What version do you use?

What version do you use?

Hi

I using 4.15.1 version.

Please use line #600

Please use line #600

Thanks I will try.

Thanks I will try.

It doesn't work. The vendor name and logo are still the same.

Have you cleared cache?

Have you cleared cache?

yes it is
Delete var/cache, delete cache in admin, execute all admin.php?cc&tpl and order
Everything is the same. Is there no way?
Can I edit the email template sent to my customers?

It is required to examine issue on your server

E-mail content can be changed on the Administration -> Notifications page