News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

How to disable notification about registration of new user ?

Started by Pizda, June 22, 2014, 13:20:43 PM

Previous topic - Next topic

Pizda

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.

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum


Pizda

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.


GJC Web Design

How could anyone help you with this software? it is a Release Candidate - software intended for testing...
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

Pizda

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

Pizda

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