Jump to content

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

"from" Email Id Should Be Of Company Instead Of Vendor In Order Rate Topic   * * * * * 1 votes

 
  • fleaffair
  • Senior Member
  • Members
  • Join Date: 11-Jun 14
  • 537 posts

Posted 24 June 2014 - 10:45 AM #1

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
Warm Regards,
Admin | MVE: 4.2.4

 

Posted 10 August 2014 - 11:02 AM #2

Same Problem here

 

Posted 11 August 2014 - 11:38 AM #3

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

sam problem me too

 
  • akshay.sharma
  • Advanced Member
  • Members
  • Join Date: 19-Dec 15
  • 107 posts

Posted 26 January 2016 - 09:42 AM #4

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