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
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
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
emails are constructed and rendered in components\com_virtuemart\helpers\shopfunctionsf.php
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
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.
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
Hi, there is way like make different email layout for different order status ?
thanks
Yes this is fully overridable. You have to override the files from the view invoice.
Jörgen @ Kreativ Fotografi
Thanks . I solved it .
Hi, can you please tell us how you solved it
thanks in advance
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