VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: dsidir77 on December 06, 2021, 16:30:03 PM

Title: Send verification email to different users depending on shopper group
Post by: dsidir77 on December 06, 2021, 16:30:03 PM
Joomla version: 3.10.3
VirtueMart 3.8.9 10514

Hello, I am trying to solve the following issue.
I am using the default shopper group and another one called wholesale.
All the confirmation emails when an order is made, are going to the same email at this time ( for example info@aaa.com).
I want to send a verification email of the default shopper group (tha means of the orders they make) to a specific email address (ie info@aaa.com) and all the wholesale group orders to another email address wholesale@aaa.com)
Any idea how to do that ?
Title: Re: Send verification email to different users depending on shopper group
Post by: Jumbo! on December 06, 2021, 16:37:33 PM
That is not possible with the standard VirtueMart component.

You can achieve this using VP Email Manager - https://www.virtueplanet.com/extensions/vp-email-manager
Title: Re: Send verification email to different users depending on shopper group
Post by: pinochico on December 06, 2021, 16:42:33 PM
https://www.minijoomla.org/extensions/virtuemart-extensions/virtuemart-mailing-manager

Setup rules for shopper group and setup email TO/FROM.

You can try self on our demo:

https://email.minijoomla.org
Title: Re: Send verification email to different users depending on shopper group
Post by: dsidir77 on December 07, 2021, 07:35:55 AM
Thanks for the replies. As I can see your extensions can do much more things than what I am looking for. What I actually only need is something like a condition to say :
if shopper group is default then
  send email to xxx@xxx.com
else
  send email to yyy@yyy.com

That simple.
Title: Re: Send verification email to different users depending on shopper group
Post by: pinochico on December 07, 2021, 14:41:38 PM
I like simple solutions too...

If you know what you want - go to core VM code (sorry, I don't know which) and add this if/else.

Simple, isn't it? :)

And thanks for sharing for others
Title: Re: Send verification email to different users depending on shopper group
Post by: GJC Web Design on December 07, 2021, 15:54:38 PM
probably function prepareViewForMail() in components\com_virtuemart\helpers\shopfunctionsf.php