News:

Support the VirtueMart project and become a member

Main Menu

Different E-Mai Designs

Started by minista, January 12, 2018, 10:05:21 AM

Previous topic - Next topic

minista

Joomla! 3.8.3 Stable
VirtueMart 3.2.12

Hi Everyone

I changed the design of the email that is sent to the customer if he orders sth. Somehow i totally forgot that these changes affect every email that the System is sending, like the email of the package is been shipped.

Im wondering how i can make a seperate design and text just for the update message of a shipped package. Does anyone know how to do this?

THanks for any advice

Studio 42

You have to check for order statut and change display depending this value.

minista

I dont think that this will work because i changed the email completely with a static text. So id like to make a complete stand alone email that is being sent when change the status to shipped...

Studio 42

if($this->orderDetails['details']['BT']->order_status == 'S') {
//yourcode here for shipped
} else {//yourcode here for all other cases

}


If you changed or not the original file, $this->orderDetails['details']['BT']->order_status is set and can be tested