I want to receive a letter with order without registration notif.
How to disable notification about registration of new user to admin email ?
Virtuemart 2.0.0RC3
file: components/com_virtuemart/helpers/shopfunctionsf.php
/* Sending mail */
$user= self::sendVmMail($view, $recipient,$noVendorMail);
if (isset($view->doVendor) && !$noVendorMail) {
self::sendVmMail($view, $view->vendorEmail, true);
}
I
Best regards.
This solution http://forum.virtuemart.net/index.php?topic=115096.msg407687#msg407687 works reversed.
Comes notification of registration but not ordering.
Sorry for my bad English.
Anyone ?
How could anyone help you with this software? it is a Release Candidate - software intended for testing...
Quote from: GJC Web Design on June 24, 2014, 10:58:31 AM
How could anyone help you with this software? it is a Release Candidate - software intended for testing...
Where is the function of sending email notifications in Virtuemart ? I'll fix it
Where may i fix it ?
private function sendVmMail (&$view, $recipient, $vendor=false) {
$jlang =JFactory::getLanguage();
$jlang->load('com_virtuemart', JPATH_SITE, 'en-GB', true);
$jlang->load('com_virtuemart', JPATH_SITE, $jlang->getDefault(), true);
$jlang->load('com_virtuemart', JPATH_SITE, null, true);
ob_start();
$view->renderMailLayout($vendor, $recipient);
$body = ob_get_contents();
ob_end_clean();
$subject = (isset($view->subject)) ? $view->subject : JText::_('COM_VIRTUEMART_DEFAULT_MESSAGE_SUBJECT');
$mailer = JFactory::getMailer();
$mailer->addRecipient($recipient);
$mailer->setSubject($subject);
$mailer->isHTML(VmConfig::get('order_mail_html',true));
$mailer->setBody($body);
if(!$vendor){
$replyto[0]=$view->vendorEmail;
$replyto[1]= $view->vendor->vendor_name;
$mailer->addReplyTo($replyto);
}
// if (isset($view->replyTo)) {
// $mailer->addReplyTo($view->replyTo);
// }
if (isset($view->mediaToSend)) {
foreach ((array)$view->mediaToSend as $media) {
//Todo test and such things.
$mailer->addAttachment($media);
}
}
return $mailer->Send();
}
Mod edit: impatient bump messages have been removed. Please read http://forum.virtuemart.net/index.php?topic=104795.0