VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: minista on January 12, 2018, 10:05:21 AM

Title: Different E-Mai Designs
Post by: minista on January 12, 2018, 10:05:21 AM
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
Title: Re: Different E-Mai Designs
Post by: Studio 42 on January 12, 2018, 15:25:56 PM
You have to check for order statut and change display depending this value.
Title: Re: Different E-Mai Designs
Post by: minista on January 13, 2018, 13:51:50 PM
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...
Title: Re: Different E-Mai Designs
Post by: Studio 42 on January 13, 2018, 14:13:02 PM
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