VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: peizamo on June 26, 2012, 18:32:38 PM

Title: Order state notification emails
Post by: peizamo on June 26, 2012, 18:32:38 PM
Hello!  :)

Currently all the emails that are being sent to shopper during the lifetime of an order are being sent also to shop admin. I can't see any reason why Admin is receiving the same "Your order state has been changed to Confirmed" -message as the shopper. Is there a chance to receive _only_ order confirmation email to Admin-account?

I could use a different email template to mails that are being sent to admin. Is it possible to have two different kind of templates for both, Admin and shopper?

I don't need ready code answers. I would be happy if someone could provide some instructions where should I start looking for modification.

Thanks!
Title: Re: Order state notification emails
Post by: peizamo on June 27, 2012, 16:40:01 PM
Update: to disable admin-notification on order state change:

insert on line 1148 at orders.php (administrator/components/com_virtuemart/models)


if($newOrderData['task'] == 'updatestatus')
     $vars['doVendor'] = true;
else
     $vars['doVendor'] = false;


Not sure how this have an effect on other functions... Hope this helps someone.