VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: thelake on August 25, 2016, 18:00:45 PM

Title: ordermail are broken after changing footer
Post by: thelake on August 25, 2016, 18:00:45 PM
As soon as I put some htmlText or {vm:vendorlegalinfo} in the footer of the ordermail the shopper receives the layout of email gets totally destroyed.
This happens suddenly with all my 5 shops, no matter with or without some overrides of "invoice".
Unfortunately in Germany I need to put the legal infos in the mail....
Joomla 3.6.2 or VM 3.0.16 / 3.0.17.6
php: 5.6.10 or 7.0.2
Title: Re: ordermail are broken after changing footer
Post by: GJC Web Design on August 25, 2016, 18:06:20 PM
then you have to assume your html is faulty

why not edit the over rides directly instead of the clonky admin thing?
Title: Re: ordermail are broken after changing footer
Post by: thelake on August 25, 2016, 18:27:06 PM
html is checked and clean and  well. Just some <h1> and <p>

you mean hardcoding the legalinfos as text in the overrides? I don't like these kind of stuff.
For me it seams to be a mistake in VM?!

Title: Re: ordermail are broken after changing footer
Post by: jenkinhill on August 25, 2016, 18:46:31 PM
I just tested adding some html formatted text into the legal info on the vendor tab using JCE editor and had no issues at all in the order emails.  I have J3.6.2/VM3.0.17.6
Title: Re: ordermail are broken after changing footer
Post by: thelake on August 25, 2016, 19:10:29 PM
Well seems I am the only one with this , 5 VM-Installations, all broken - but for what reason???
What kind of server you are using?
Title: Re: ordermail are broken after changing footer
Post by: jenkinhill on August 25, 2016, 21:01:09 PM
It is very unlikely to be server related - but standard Linux, cPanel, PHP5.6.23  MySQL5.6.30

Are you using any ids or classes? Any css must be in-line for this.
Title: Re: ordermail are broken after changing footer
Post by: GJC Web Design on August 25, 2016, 23:01:22 PM
Quoteyou mean hardcoding the legalinfos as text in the overrides? I don't like these kind of stuff.

make the T&C's a lang constant over ride and just add the  <?php echo JText::_('MY_T_AND_C'); ?>

Quote5 VM-Installations, all broken

example of?

put <?php die();  ?> at the bottom of components\com_virtuemart\views\invoice\tmpl\mail_html.php and toggle the pending /confirmed of the order so you can debug it