VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: AnSit on October 20, 2018, 23:50:03 PM

Title: How to disable sending email to the administrator when notifying users?
Post by: AnSit on October 20, 2018, 23:50:03 PM
Can you please tell me which files and how you need to change so that letters are not automatically sent to the administrator when sending a letter to customers that the product has reappeared in stock?

Constantly when sending each letter to come a copy to the administrator. This is an unnecessary function, since the administrator himself knows about it.
Title: Re: How to disable sending email to the administrator when notifying users?
Post by: AnSit on October 28, 2018, 17:56:28 PM
Experts and developers, please tell me in which file and how to disable these notifications to administrators?
Title: Re: How to disable sending email to the administrator when notifying users?
Post by: GJC Web Design on October 28, 2018, 18:55:25 PM
administrator\components\com_virtuemart\models\waitinglist.php

public function notifyList ($virtuemart_product_id, $subject = '', $mailbody = '', $max_number = 0)

components\com_virtuemart\helpers\shopfunctionsf.php

static public function renderMail ($viewName, $recipient, $vars = array(), $controllerName = NULL, $noVendorMail = FALSE,$useDefault=true)
Title: Re: How to disable sending email to the administrator when notifying users?
Post by: AnSit on November 02, 2018, 10:25:35 AM
Thank you very much, GJC Web Design, for responding!
I found these files and these lines, but I don't understand how to change them correctly. (( I still know PHP very badly and how these functions work.

If you are not very difficult - tell me, please.
Title: Re: How to disable sending email to the administrator when notifying users?
Post by: GJC Web Design on November 02, 2018, 12:26:50 PM
haven't tried but assume u set

$noVendorMail = TRUE
Title: Re: How to disable sending email to the administrator when notifying users?
Post by: AnSit on November 02, 2018, 15:10:06 PM
Oh yes, it worked!
How grateful I am to you, GJC Web Design!
Thank you for your attention and hint!