简体   繁体   中英

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)

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

<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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM