News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Modify order confirm mail via plugin

Started by sandomatyas, December 01, 2022, 17:04:25 PM

Previous topic - Next topic

sandomatyas

Is there a way to modify the order confirm emails after it was builded but before sent?

I use RSForm Pro component which has a cool function for that: "Script called before the Admin Email is sent. The $adminEmail array contains all the information that will be sent in the email", here I can modify all of the email params like to, cc, bcc, subject, body, sender, replyto, attached files, etc

The main idea would be modify the subject, maybe the recipient based on custom php script, like add some data to the mail subject if a specific cookie exists or has a specific value. Or add extra recipients on weekends.
I know there is VP Email manager (https://www.virtueplanet.com/extensions/vp-email-manager) and I'm also familiar with layout overrides.

Long story short: is it possible to manage the vendor email's subject/recipient by a triggered plugin method?

side note: is there a list of all of Virtuemart's plugin triggers?

sandomatyas


pinochico

Virtuemart Mailing manager - older app - from VM1.19 to VM3
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

Milbo

Quote from: sandomatyas on December 01, 2022, 17:04:25 PM
side note: is there a list of all of Virtuemart's plugin triggers?

Use an IDE and search for "plgVm", then you should find em all
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/