Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Orders Email Sending To Customer Rate Topic   - - - - -

 
  • sendrrmy
  • Member
  • Trial users
  • Join Date: 24-Feb 15
  • 16 posts

Posted 10 November 2016 - 09:07 AM #1

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?

 

 

 



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19478 posts

Posted 11 November 2016 - 06:57 AM #2

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


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • sendrrmy
  • Member
  • Trial users
  • Join Date: 24-Feb 15
  • 16 posts

Posted 11 November 2016 - 08:47 AM #3

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? 



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19478 posts

Posted 11 November 2016 - 02:03 PM #4

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


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • sendrrmy
  • Member
  • Trial users
  • Join Date: 24-Feb 15
  • 16 posts

Posted 14 November 2016 - 08:08 AM #5

 
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.



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19478 posts

Posted 14 November 2016 - 08:12 AM #6

You are welcome!

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.