"from" Email Id Should Be Of Company Instead Of Vendor In Order

Hi Forum,



I am new to CS-Cart Multivendor, so seeking for some guidance from experts here on couple of issues I am facing in configuration.


  1. As of now what I see that when an Order is been placed by customer, he gets an email “From” vendors email id mentioned e.g. vendor@vendordomain.com but I don't want customer & vendor start their separate email thread with looping us out of the mail. How can I change “From” email id from vendors to our company email id e.g. care@mycompanydomain.com


  2. How can we remove few fields/values from Order's INVOICE which we don't want customer to see in invoice. Fields like Vendor email & Phone number are something which we don't want to publish to customer in Invoice.


  3. When ever customer is receiving an Order Email notification, the mail client shows that email as phishing. How can we fix this issue as I observed same / tried in gmail only.



    I hope some expert will mentor/guide me on these issues to make relevant changes in CS-Cart.



    Regards,

    Mohit

Same Problem here

[quote name='fleaffair' timestamp='1403606703' post='186328']

Hi Forum,



I am new to CS-Cart Multivendor, so seeking for some guidance from experts here on couple of issues I am facing in configuration.


  1. As of now what I see that when an Order is been placed by customer, he gets an email “From” vendors email id mentioned e.g. vendor@vendordomain.com but I don't want customer & vendor start their separate email thread with looping us out of the mail. How can I change “From” email id from vendors to our company email id e.g. care@mycompanydomain.com


  2. How can we remove few fields/values from Order's INVOICE which we don't want customer to see in invoice. Fields like Vendor email & Phone number are something which we don't want to publish to customer in Invoice.


  3. When ever customer is receiving an Order Email notification, the mail client shows that email as phishing. How can we fix this issue as I observed same / tried in gmail only.



    I hope some expert will mentor/guide me on these issues to make relevant changes in CS-Cart.



    Regards,

    Mohit

    [/quote]

    sam problem me too

As I understand you want to change the e-mail address which is displayed in the new shipment e-mail notification. In order to do that, please replace the following part of code in the fn.cart.php file located in the app/functions directory of your CS-Cart installation :

fn_set_hook('create_shipment_post', $shipment_data, $order_info, $group_key, $all_products, $shipment_id);

if (!empty($force_notification[‘C’])) {
$shipment = array(
‘shipment_id’ => $shipment_id,
‘timestamp’ => $shipment_data[‘timestamp’],
‘shipping’ => db_get_field(‘SELECT shipping FROM ?:shipping_descriptions WHERE shipping_id = ?i AND lang_code = ?s’, $shipment_data[‘shipping_id’], $order_info[‘lang_code’]),
‘tracking_number’ => $shipment_data[‘tracking_number’],
‘carrier’ => $shipment_data[‘carrier’],
‘comments’ => $shipment_data[‘comments’],
‘items’ => $shipment_data[‘products’],
);

Mailer::sendMail(array(
    'to' => $order_info['email'],
    'from' => 'company_orders_department',
    'data' => array(
        'shipment' => $shipment,
        'order_info' => $order_info,
    ),
    'tpl' => 'shipments/shipment_products.tpl',
    'company_id' => $order_info['company_id'],
), 'C', $order_info['lang_code']);

}

with this one:

fn_set_hook('create_shipment_post', $shipment_data, $order_info, $group_key, $all_products, $shipment_id);

if (!empty($force_notification[‘C’])) {
$shipment = array(
‘shipment_id’ => $shipment_id,
‘timestamp’ => $shipment_data[‘timestamp’],
‘shipping’ => db_get_field(‘SELECT shipping FROM ?:shipping_descriptions WHERE shipping_id = ?i AND lang_code = ?s’, $shipment_data[‘shipping_id’], $order_info[‘lang_code’]),
‘tracking_number’ => $shipment_data[‘tracking_number’],
‘carrier’ => $shipment_data[‘carrier’],
‘comments’ => $shipment_data[‘comments’],
‘items’ => $shipment_data[‘products’],
);

Mailer::sendMail(array(
    'to' => $order_info['email'],
    'from' => 'default_company_orders_department',
    'data' => array(
        'shipment' => $shipment,
        'order_info' => $order_info,
    ),
    'tpl' => 'shipments/shipment_products.tpl',
    'company_id' => $order_info['company_id'],
), 'C', $order_info['lang_code']);

}

And

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']);

if (!empty($edp_data)) {
Mailer::sendMail(array(
‘to’ => $order_info[‘email’],
‘from’ => ‘company_orders_department’,
‘data’ => array(
‘order_info’ => $order_info,
‘edp_data’ => $edp_data,
),
‘tpl’ => ‘orders/edp_access.tpl’,
‘company_id’ => $order_info[‘company_id’],
), ‘C’, $order_info[‘lang_code’]);
}

with this one

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' => $order_info['company_id'],
), 'C', $order_info['lang_code']);

if (!empty($edp_data)) {
Mailer::sendMail(array(
‘to’ => $order_info[‘email’],
‘from’ => ‘default_company_orders_department’,
‘data’ => array(
‘order_info’ => $order_info,
‘edp_data’ => $edp_data,
),
‘tpl’ => ‘orders/edp_access.tpl’,
‘company_id’ => $order_info[‘company_id’],
), ‘C’, $order_info[‘lang_code’]);
}

its will be solve this issue :) :D