VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: z-analysts on August 12, 2012, 05:26:12 AM

Title: Email overrides not working in 2.0.8e
Post by: z-analysts on August 12, 2012, 05:26:12 AM
I created an override for mail_html_header.php but it is not recognized by Virtuemart when the Order email is sent. I have seen other override problems but my issue is with emails. Is there a workaround for this?

Thank you!

VM 2.0.8e
Joomla 2.5.6
Title: Re: Email overrides not working in 2.0.8e
Post by: jjk on August 12, 2012, 14:22:12 PM
I just tested this. For me it works. Maybe you stored your override file at a place where Joomla/VM2 is not looking for override files.
If you place your adjusted mail_html_header.php in the folder
...joomlaroot\templates\yourtemplatename\html\com_virtuemart\invoice\mail_html_header.php
it should work.
Title: Re: Email overrides not working in 2.0.8e
Post by: PRO on August 12, 2012, 14:57:13 PM
make sure you do not have the OLD file structure.

In earlier versions of 2.0 there were other files that generated the order emails.

BEST way to check is to

rename the com_virtuemart/views    folder.

Then, extract a new package, and upload it
Title: Re: Email overrides not working in 2.0.8e
Post by: z-analysts on August 12, 2012, 20:15:08 PM
Hello PRO and jjk -

Thank you for your replies. I placed my custom file in ...joomlaroot\templates\gk_cherrydesign\html\com_virtuemart\views\invoice\tmpl\mail_html_header.php which is the same location as the 2.0.8e file structure.

Please advise.

Regards,
Tim
Title: Re: Email overrides not working in 2.0.8e
Post by: jjk on August 12, 2012, 21:08:27 PM
Whenever I see "gk" in this forum, I'm tempted to recommend "Check if your problem goes away when using a standard template"  ;D