[英]Magento: Transactional emails. How add an image from a custom template
I've created in my webpage a custom theme ('mytheme') and I'd like to add to a transactional email an image from this template (.../skin/frontend/mytheme/default/images/myimage.png) 我已经在网页中创建了自定义主题('mytheme'),并且希望将此模板中的图像添加到交易电子邮件中(... / skin / frontend / mytheme / default / images / myimage.png)
I've tried some options but anyone works: 我尝试了一些选项,但是任何人都可以:
<div sytle="background: {{skin url="images/myimage.png" _area="frontend"}}"></div>
<div sytle="background: {{skin url="images/myimage.png" _area="frontend" _theme="mytheme"}}"></div>
<div sytle="background: {{skin url="images/myimage.png" _area="frontend" _theme="mytheme" _package="default"}}"></div>
In this case _package would be mytheme 在这种情况下,_package将是我的主题
<div sytle="background: {{skin url="images/myimage.png" _area="frontend" _theme="default" _package="mytheme"}}"></div>
Also verify that the image is there otherwise magento will fallback to the default package 还要验证图片是否存在,否则magento将回退到默认软件包
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.