News:

Looking for documentation? Take a look on our wiki

Main Menu

Email invoice logo URI issues - mail_html_header

Started by TechnoMage, July 24, 2017, 12:29:48 PM

Previous topic - Next topic

TechnoMage

Hi,

I am working on a new VM website using version 3.2.2 on Joomla 3.6.5. Unfortunately all html email invoice confirmations being sent out are missing the proper URI from the vendor logo in the email header and I cannot make it working.

It appears that the JURI:root() function does not return any results which is the main cause of the issue but I do not really understand the reason behind this because all the rest of the links within the generated email are working fine even the footer ones that uses the same JURI:root() function.

Also if I change anything in the header template file it does not seem to be reflected in the emails being sent out.

Could someone please advice what could I be doing wrong?

I have also noticed that a semi-colon might be potentially missing from the \components\com_virtuemart\views\invoice\tmpl\mail_html_header.php file in line 28:

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="html-email">
<?php if ($this->vendor->vendor_letter_header>0) { ?>
<tr>
<?php if ($this->vendor->vendor_letter_header_image>0) { ?>
<td class="vmdoc-header-image"><img src="<?php echo JURI::root () . $this->vendor->images[0]->file_url ?>" style="width: <?php echo $this->vendor->vendor_letter_header_imagesize?>mm;" /></td>
<td colspan=1 class="vmdoc-header-vendor">
<?php } else { // no image ?>
<td colspan=2 width="100%" class="vmdoc-header-vendor">
<?php ?>
<div id="vmdoc-header" class="vmdoc-header" style="font-size: <?php echo $this->vendor->vendor_letter_header_font_size?>pt;">
<?php echo VirtuemartViewInvoice::replaceVendorFields ($this->vendor->vendor_letter_header_html$this->vendor); ?>
</div>
</td>
</tr>