News:

Support the VirtueMart project and become a member

Main Menu

wich php file send order to vendor ?

Started by serge-web54, February 05, 2016, 10:26:48 AM

Previous topic - Next topic

serge-web54

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

GJC Web Design

from memory frontend helper/cart.php .. I'm sure I posted on here somewhere a hack to send multiple emails on order confirm..
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

serge-web54

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

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

serge-web54

i should have reported that it was vm3.
i do not fin this code in cart.php