VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: raheelhir on June 06, 2015, 14:16:44 PM

Title: Different Email Layout on Different Order Status
Post by: raheelhir 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
Title: Re: Different Email Layout on Different Order Status
Post by: AH 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

Title: Re: Different Email Layout on Different Order Status
Post by: raheelhir 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
Title: Re: Different Email Layout on Different Order Status
Post by: GJC Web Design on June 08, 2015, 10:01:29 AM
emails are constructed and rendered in components\com_virtuemart\helpers\shopfunctionsf.php
Title: Re: Different Email Layout on Different Order Status
Post by: AH 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

Title: Re: Different Email Layout on Different Order Status
Post by: Milbo 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.
Title: Re: Different Email Layout on Different Order Status
Post by: AH on June 10, 2015, 11:06:37 AM
Hi Milbo

Yes I see the function

I could add a test if a sublayout with the current orderstatus is available and use it.

That would certainly help
Title: Re: Different Email Layout on Different Order Status
Post by: roman5527 on August 26, 2019, 16:04:38 PM
Hi, there is way like make different email layout for different order status ?

thanks
Title: Re: Different Email Layout on Different Order Status
Post by: Jörgen 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
Title: Re: Different Email Layout on Different Order Status
Post by: roman5527 on August 27, 2019, 18:55:01 PM
Thanks . I solved it .
Title: Re: Different Email Layout on Different Order Status
Post by: panagiotiss on November 15, 2020, 21:06:00 PM
Hi, can you please tell us how you solved it

thanks in advance
Title: Re: Different Email Layout on Different Order Status
Post by: pinochico on November 15, 2020, 21:08:43 PM
I don't know how, but we use VirtueMart Mailing Manager.
For every status we can create new HTML layout in Joomla editor with lot of Tags.
https://youtu.be/6b8lWeOSNHk