News:

Support the VirtueMart project and become a member

Main Menu

How to disable order-mails for customers?

Started by Juraj, August 03, 2012, 16:47:28 PM

Previous topic - Next topic

Juraj

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.

ivus

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.

Juraj

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)

ivus

Hi juraj,

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

You could always test it yourself.

Juraj

Hi ivus,
thanks for Your answer ;)

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