我正在创建一个新的电子邮件模板来替换Magento上的默认值。直接使用了一些代码后,我用Google搜索了如何添加静态块并遵循这些基本和简要的说明:
http://www.webcenter.co.in/insert-cms-static-block-into-transactional-email-template-in-magento/
这对我不起作用,并且在发送电子邮件时产生了空格,并且(在Chrome中查看HTML文件时,代码看起来是分开的:
Example of email previewed in chrome
我真的不明白为什么会发生这种情况,其他magento代码在电子邮件中起作用('你订购了什么:'部分成功地返回一个表并且一切正常)。
以下是所有这些内容的HTML页脚:
<!-- // FOOTER BLOCK HERE // -->
<td align="center" valign="top" id="footerContainer" style="padding:20px;">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td style="text-align:center;">
<p>Follow us to keep updated with all our exclusive offers and competitions!</p>
</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="20%">
<a href="https://www.facebook.com/*****" title="***** Facebook" target="_blank" style="margin-left:40%;">
<img src="https://www.*******.co.uk/media/******/Email_Icons/facebook.png" alt="Follow on Facebook" height="20px" width="20px">
</a>
</td>
<td width="20%">
<a href="https://www.instagram.com/*****/" title="****** Instagram" target="_blank" style="margin-left:40%;">
<img src="https://www.********.co.uk/media/****/Email_Icons/instagram.png" alt="Follow ******* on Instagram" height="20px" width="20px">
</a>
</td>
<td width="20%">
<a href="https://twitter.com/*******" title="******* Twitter" target="_blank" style="margin-left:40%;">
<img src="https://www.********.co.uk/media/roco/Email_Icons/twitter.png" alt="Follow ******** on Twitter" height="20px" width="20px">
</a>
</td>
<td width="20%">
<a href="https://uk.pinterest.com/*******/" title="******* Pinterest" target="_blank" style="margin-left:40%;">
<img src="https://www.******.co.uk/media/roco/Email_Icons/pintrest.png" alt="Follow ******* on Pinterest" height="20px" width="20px">
</a>
</td>
<td width="20%">
<a href="https://www.youtube.com/user/*******" title="***** YouTube" target="_blank" style="margin-left:40%;">
<img src="https://www.*******.co.uk/media/*****/Email_Icons/youtube.png" alt="Follow ****** on Youtube" height="20px" width="20px">
</a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="text-align:center;">
<p>This inbox is unattended so please don't reply to this email. Just visit our <a href="https://www.*****.co.uk/help" title="Help Pages" alt="Help Pages">Help Pages</a> if you need extra information. This is a service email and you are recieving
it regardless of your marketing communication preferences.</p>
</td>
</tr>
</table>
<p>{{block type="cms/block" block_id="temp-email-tester" }}</p>
</td>
<!-- // FOOTER BLOCK ENDS HERE // -->
任何答案都非常感谢!