VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: Pizda on June 22, 2014, 13:20:43 PM

Title: How to disable notification about registration of new user ?
Post by: Pizda on June 22, 2014, 13:20:43 PM
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.
Title: Re: How to disable notification about registration of new user ?
Post by: jenkinhill on June 22, 2014, 17:09:30 PM
Quote from: Pizda on June 22, 2014, 13:20:43 PM
Virtuemart 2.0.0RC3

Are you serious?
Title: Re: How to disable notification about registration of new user ?
Post by: Pizda on June 22, 2014, 19:21:18 PM
Quote from: jenkinhill on June 22, 2014, 17:09:30 PM
Quote from: Pizda on June 22, 2014, 13:20:43 PM
Virtuemart 2.0.0RC3

Are you serious?

Are you a flooder ?
Title: Re: How to disable notification about registration of new user ?
Post by: Pizda on June 22, 2014, 19:34:37 PM
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.
Title: Re: How to disable notification about registration of new user ?
Post by: Pizda on June 24, 2014, 09:53:28 AM
Anyone ?
Title: Re: How to disable notification about registration of new user ?
Post by: 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...
Title: Re: How to disable notification about registration of new user ?
Post by: Pizda on June 24, 2014, 11:07:18 AM
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
Title: Re: How to disable notification about registration of new user ?
Post by: Pizda on June 24, 2014, 11:19:22 AM
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