hello,
i do not find the file wich send email when confirmed in vendor
i just want to hack it to add another mail adress to send order to a service.
would you be kind to tell me where i can modify this ?
thanks serge
from memory frontend helper/cart.php .. I'm sure I posted on here somewhere a hack to send multiple emails on order confirm..
thanks, I searched in admin files.
I have made researches on the forum but have find anything for vm3
I f you remember where you posted it, I shall be interested
found some notes from 2 years ago
it was basically use the address2 line of the vendor for extra comma separated email addresses
then in cart.php
add address_2 to array of recipients line 262
$recipient = explode(',',$view->vendor->vendorFields['fields']['address_2']['value']);
$recipient[] = $view->vendorEmail;
#self::sendVmMail($view, $view->vendorEmail, TRUE);
self::sendVmMail($view, $recipient, TRUE);
and later
if(isset($view->doVendor) && !$noVendorMail) {
$recipient = explode(',',$view->vendor->vendorFields['fields']['address_2']['value']);//GJC added
$recipient[] = $view->vendorEmail; //GJC added
if(isset($vars['orderDetails'])){
$order = $vars['orderDetails'];
$orderstatusForVendorEmail = VmConfig::get('email_os_v',array('U','C','R','X'));
if(!is_array($orderstatusForVendorEmail)) $orderstatusForVendorEmail = array($orderstatusForVendorEmail);
if ( in_array((string)$order['details']['BT']->order_status,$orderstatusForVendorEmail)){
#self::sendVmMail( $view, $view->vendorEmail, TRUE );
self::sendVmMail($view, $recipient, TRUE);//GJC added
}else{
$user = -1;
}
} else {
#self::sendVmMail( $view, $view->vendorEmail, TRUE );
self::sendVmMail($view, $recipient, TRUE);//GJC added
}
}
can't remember why its twice
i should have reported that it was vm3.
i do not fin this code in cart.php