简体   繁体   English

Magento:交易电子邮件。 如何从自定义模板添加图像

[英]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.

相关问题 Magento - 如何在交易电子邮件中插入产品图像 - Magento - How to insert product image in transactional email 如何在Drupal中为图像添加工具提示? 使用自定义模板 - How to add tool tip for image in Drupal? Using custom template Magento - 以编程方式从 url 添加图像? - Magento - programmatically add image from url? Magento 2将自定义图像属性添加到客户资料并显示缩略图 - Magento 2 add custom image attribute to customer profile and show thumbnail 如何在自定义打字稿模板中 output 图像标题? - How to output an image caption in custom typoscript template? Magento2如何在管理cms中添加图像上传器字段 - Magento2 how add image uploader field in admin cms 在magento中以CSV格式添加图片网址 - add image url in CSV in magento 如何将图像文件封装到电子邮件中? - How to encapsulate image files into emails? Magento中的自定义图像属性在未设置任何图像时生成错误,并从产品视图页面调用 - Custom Image Attribute in Magento generates error when not set any image and called from product view page 如何添加图像以从adv自定义字段和自定义帖子类型循环播放 - How to add image to loop from adv custom fields and custom post type
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM