VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: Juraj on August 03, 2012, 16:47:28 PM

Title: How to disable order-mails for customers?
Post by: Juraj on August 03, 2012, 16:47:28 PM
Hi,
is there any solution how to disable order-mails for customers? But only order mails for customers, not all mails - "notify me" mails about "oroduct is out of stock" must work.

Reason: our shop is connected with other shop/sending system whitch send mails after receives order from our site.


For now, i disable the mail sending function "renderMail" in /helpers/shopfunctionsf.php, but this is not good solution because now VM not send "notify me" mail to customers.
Title: Re: How to disable order-mails for customers?
Post by: ivus on August 03, 2012, 17:29:55 PM
Hi Juraj,

You're on the right track.

The renderMail() function sets up the emails that need to be sent, then forwards it to sendVmMail() for processing.

What you need to do is search in the admin section for anything that sends to renderMail() and disable the one you need.

I hope this helps.
Title: Re: How to disable order-mails for customers?
Post by: Juraj on August 04, 2012, 01:43:17 AM
Hi ivus,
thanks for tip ;-)

Now i tried in "\administrator\components\com_virtuemart\models\orders.php" disable the function "notifyCustomer"
info mails to customers about order not sent - thats great  :)

"notify me" mails sent, but only manualy sending from product page in admin,
maybe stupid question, but can VM automaticly send "notify me" mails when product "In Stock" change from "0" to "1+"? (information on our site are automatically updated from the store every hour - script with direct database entry)
Title: Re: How to disable order-mails for customers?
Post by: ivus on August 04, 2012, 01:59:46 AM
Hi juraj,

I'm not sure. I don't use that feature.

You could always test it yourself.
Title: Re: How to disable order-mails for customers?
Post by: Juraj on August 05, 2012, 01:43:12 AM
Hi ivus,
thanks for Your answer ;)

Is there anyone who uses this feature, or knows the answer to my question?