Author Topic: Send verification email to different users depending on shopper group  (Read 333 times)

dsidir77

  • Beginner
  • *
  • Posts: 2
  • A beginner
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 ?

Jumbo!

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 771
  • Full-stack Web Developer
    • www.virtueplanet.com
  • VirtueMart Version: Always latest
Re: Send verification email to different users depending on shopper group
« Reply #1 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

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1286
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Send verification email to different users depending on shopper group
« Reply #2 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
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

dsidir77

  • Beginner
  • *
  • Posts: 2
  • A beginner
Re: Send verification email to different users depending on shopper group
« Reply #3 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.

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1286
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Send verification email to different users depending on shopper group
« Reply #4 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
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10343
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Send verification email to different users depending on shopper group
« Reply #5 on: December 07, 2021, 15:54:38 pm »
probably function prepareViewForMail() in components\com_virtuemart\helpers\shopfunctionsf.php
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation