Author Topic: Different E-Mai Designs  (Read 346 times)

minista

  • Beginner
  • *
  • Posts: 11
  • A beginner
Different E-Mai Designs
« 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

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3388
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: Different E-Mai Designs
« Reply #1 on: January 12, 2018, 15:25:56 pm »
You have to check for order statut and change display depending this value.

minista

  • Beginner
  • *
  • Posts: 11
  • A beginner
Re: Different E-Mai Designs
« Reply #2 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...

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3388
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: Different E-Mai Designs
« Reply #3 on: January 13, 2018, 14:13:02 pm »
Code: [Select]
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