Author Topic: Different Email Layout on Different Order Status  (Read 1139 times)

raheelhir

  • Beginner
  • *
  • Posts: 8
Different Email Layout on Different Order Status
« on: June 06, 2015, 14:16:44 pm »
Dear, I want Different Email Layout on Different order status 

Example: When order create on website so invoice email sent to customer when admin change order status is confirmed, cancel or shipped so same email goes to customer with order status but I need different email layout when order status is set to shipped or cancel. I am very thanksfull to who can guide me regarding this issue

Thanks,

Raheel

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2979
  • VirtueMart Version: 3.6.3
Re: Different Email Layout on Different Order Status
« Reply #1 on: June 07, 2015, 11:10:15 am »
I have asked for such differentiation but this is not currently available with VM core

Hopefully someone will post here to let us know if this will be available at some point.

I would rather not add a component from a third party to control such functionality

regards
A

Joomla 3.9.12
php 7.2

raheelhir

  • Beginner
  • *
  • Posts: 8
Re: Different Email Layout on Different Order Status
« Reply #2 on: June 08, 2015, 08:47:37 am »
Thanks for reply Hutson.

Still I am working on this issue if anyone can give just a 1 hint so I can solve this issue

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9139
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: Different Email Layout on Different Order Status
« Reply #3 on: June 08, 2015, 10:01:29 am »
emails are constructed and rendered in components\com_virtuemart\helpers\shopfunctionsf.php
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2979
  • VirtueMart Version: 3.6.3
Re: Different Email Layout on Different Order Status
« Reply #4 on: June 08, 2015, 10:46:40 am »
This may be so

But there is still no way to differentiate the layout/format of an email by status code in core functionality.

i.e  Don't send the order line details on every type of status e.g. partial refund

regards
A

Joomla 3.9.12
php 7.2

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9942
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Different Email Layout on Different Order Status
« Reply #5 on: June 10, 2015, 01:24:55 am »
The rendering function is in shopfunctionsf, but any layout is overridable. The order status also available.

I could add a test if a sublayout with the current orderstatus is available and use it.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2979
  • VirtueMart Version: 3.6.3
Re: Different Email Layout on Different Order Status
« Reply #6 on: June 10, 2015, 11:06:37 am »
Hi Milbo

Yes I see the function

Code: [Select]
I could add a test if a sublayout with the current orderstatus is available and use it.
That would certainly help
regards
A

Joomla 3.9.12
php 7.2

roman5527

  • Jr. Member
  • **
  • Posts: 155
Re: Different Email Layout on Different Order Status
« Reply #7 on: August 26, 2019, 16:04:38 pm »
Hi, there is way like make different email layout for different order status ?

thanks

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 2383
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Different Email Layout on Different Order Status
« Reply #8 on: August 26, 2019, 21:18:26 pm »
Yes this is fully overridable. You have to override the files from the view invoice.

Jörgen @ Kreativ Fotografi
Joomla 3.9.8
Virtuemart 3.4.x
Olympiantheme Hera (customized)

roman5527

  • Jr. Member
  • **
  • Posts: 155
Re: Different Email Layout on Different Order Status
« Reply #9 on: August 27, 2019, 18:55:01 pm »
Thanks . I solved it .