VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Mister Paul on June 17, 2020, 13:00:20 PM

Title: Multiple emails when items from a specified Product Category are bought?
Post by: Mister Paul on June 17, 2020, 13:00:20 PM
Hi,

when product is bought an email is sent to the email of the joomla account settings. Fine.
But just for some products that belong to a specified Product Category, I'd need to add a second email address.

What would you suggest to me?

Thanks for your help
Paul
Title: Re: Multiple emails when items from a specified Product Category are bought?
Post by: pinochico on June 17, 2020, 18:18:05 PM
I think, custom developping or you can use VirtueMart Email manager, where you can setup rules and add cc:

https://www.minijoomla.org/extensions/virtuemart-extensions/virtuemart-mailing-manager
Title: Re: Multiple emails when items from a specified Product Category are bought?
Post by: Mister Paul on June 18, 2020, 14:07:46 PM
Initially I thought I could make a simple email redirection rule from my email client, but filtering by name, SKU would be too heavy to manage...

I could also "Use The Vendor Email Address" that allows to use the email of the vendor instead of the joomla account settings. But it is said here that emails are often handled as spam.
https://docs.virtuemart.net/manual/general-concepts/219-email-handling.html
:-(

So, yes... custom developping would be the best solution.
Do you know what is the php file that sends email for confirmed orders ?
I should add a condition if order contains a product from a specified category.
Title: Re: Multiple emails when items from a specified Product Category are bought?
Post by: GJC Web Design on June 18, 2020, 18:07:29 PM
components\com_virtuemart\helpers\shopfunctionsf.php
Title: Re: Multiple emails when items from a specified Product Category are bought?
Post by: Mister Paul on June 18, 2020, 21:27:03 PM
Thanks for your help!
:)