News:

Looking for documentation? Take a look on our wiki

Main Menu

Order state notification emails

Started by peizamo, June 26, 2012, 18:32:38 PM

Previous topic - Next topic

peizamo

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!

peizamo

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.