Author Topic: How to disable sending email to the administrator when notifying users?  (Read 448 times)

AnSit

  • Jr. Member
  • **
  • Posts: 73
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.

AnSit

  • Jr. Member
  • **
  • Posts: 73
Re: How to disable sending email to the administrator when notifying users?
« Reply #1 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?

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8433
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: How to disable sending email to the administrator when notifying users?
« Reply #2 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)
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

AnSit

  • Jr. Member
  • **
  • Posts: 73
Re: How to disable sending email to the administrator when notifying users?
« Reply #3 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.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8433
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: How to disable sending email to the administrator when notifying users?
« Reply #4 on: November 02, 2018, 12:26:50 pm »
haven't tried but assume u set

$noVendorMail = TRUE
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

AnSit

  • Jr. Member
  • **
  • Posts: 73
Re: How to disable sending email to the administrator when notifying users?
« Reply #5 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!