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