VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: rayge on January 31, 2013, 17:33:17 PM

Title: Change order email based on shipping type?
Post by: rayge on January 31, 2013, 17:33:17 PM
I need to find or get direction on coding a plugin or something that when a user selects a particular shipping method, the email that is sent to the admin upon purchase changes.
For example if a user picks express shipping it goes to an email that will handle the express methods.

I am in the process of migrating a client from Joomla 1.5 VM 1.1.2 to Joomla 2.5 VM 2.x and before i start i want to make sure the expect functionality can be handled as items were hard coded into the core in this old version. I don't want to see that again. I want to make sure items are done with updatability in mind.

Thanks for any help!!
Title: Re: Change orders email based on shipping type?
Post by: rayge on April 15, 2013, 01:13:26 AM
Has anyone figured this out yet? Im hoping i can write a plugin that can modify the orders email address before the email is sent based on the shipping name.
they are using authorize.net
IF i check the plugin for that it looks liek them code sending the email is here
$this->sendEmailToVendorAndAdmins (JText::_ ('VMPAYMENT_AUTHORIZENET_ERROR_EMAIL_SUBJECT'), $error_message);

maybe An extended class can be written to be a solution to my issues?