如何获取交易电子邮件以显示多商店magento 1.5.1的正确徽标和电子邮件地址

时间:2011-11-15 18:13:30

标签: email magento magento-1.5 transactional-email

当我在Magento 1.5.1中设置电子邮件交易模板时,它没有将正确的信息提取到模板中。

我已经完成并通过每个商店的交易电子邮件设置创建并保存了模板。每个商店都有自己的主题,应该为特定主题拉动徽标和电子邮件。但是,当我发送电子邮件或预览时,它不会为该商店提取正确的徽标,联系信息或电子邮件。它只是提出了全球信息。

我是否必须更改特定变量才能使其正常工作。以下是用于新帐户模板的代码。

<body style="background:#F6F6F6; font-family:Verdana, Arial, Helvetica, sans-serif;   font-size:12px; margin:0; padding:0;">
<div style="background:#F6F6F6; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; margin:0; padding:0;">
<table cellspacing="0" cellpadding="0" border="0" height="100%" width="100%">
        <tr>
            <td align="center" valign="top" style="padding:20px 0 20px 0">
                <!-- [ header starts here] -->
                <table bgcolor="FFFFFF" cellspacing="0" cellpadding="10" border="0" width="650" style="border:1px solid #E0E0E0;">
                    <tr>
                        <td valign="top">
                            <a href="{{store url=""}}"><img src="{{skin url="images/logo_email.gif" _area='frontend'}}" alt="{{var store.getFrontendName()}}"  style="margin-bottom:10px;" border="0"/></a></td>
                    </tr>
                <!-- [ middle starts here] -->
                    <tr>
                        <td valign="top">
                            <h1 style="font-size:22px; font-weight:normal; line-height:22px; margin:0 0 11px 0;"">Dear {{htmlescape var=$customer.name}},</h1>
                            <p style="font-size:12px; line-height:16px; margin:0 0 16px 0;">Welcome to {{var store.getFrontendName()}}. To log in when visiting our site just click <a href="{{store url="customer/account/"}}" style="color:#1E7EC8;">Login</a> or <a href="{{store url="customer/account/"}}" style="color:#1E7EC8;">My Account</a> at the top of every page, and then enter your e-mail address and password.</p>
                        <p style="border:1px solid #E0E0E0; font-size:12px; line-height:16px; margin:0; padding:13px 18px; background:#f9f9f9;">
                            Use the following values when prompted to log in:<br/>
                            <strong>E-mail</strong>: {{var customer.email}}<br/>
                            <strong>Password</strong>: {{htmlescape var=$customer.password}}<p>
                        <p style="font-size:12px; line-height:16px; margin:0 0 8px 0;">When you log in to your account, you will be able to do the following:</p>
                        <ul style="font-size:12px; line-height:16px; margin:0 0 16px 0; padding:0;">
                            <li style="list-style:none inside; padding:0 0 0 10px;">&ndash; Proceed through checkout faster when making a purchase</li>
                            <li style="list-style:none inside; padding:0 0 0 10px;">&ndash; Check the status of orders</li>
                            <li style="list-style:none inside; padding:0 0 0 10px;">&ndash; View past orders</li>
                            <li style="list-style:none inside; padding:0 0 0 10px;">&ndash; Make changes to your account information</li>
                            <li style="list-style:none inside; padding:0 0 0 10px;">&ndash; Change your password</li>
                            <li style="list-style:none inside; padding:0 0 0 10px;">&ndash; Store alternative addresses (for shipping to multiple family members and friends!)</li>
                        </ul>
                        <p style="font-size:12px; line-height:16px; margin:0;">If you have any questions about your account or any other matter, please feel free to contact us at <a href="mailto:{{config path='trans_email/ident_support/email'}}" style="color:#1E7EC8;">{{config path='trans_email/ident_support/email'}}</a> or by phone at {{config path='general/store_information/phone'}}.</p>
                    </td>
                </tr>
                <tr>
                    <td bgcolor="#EAEAEA" align="center" style="background:#EAEAEA; text-align:center;"><center><p style="font-size:12px; margin:0;">Thank you again, <strong>{{var store.getFrontendName()}}</strong></p></center></td>
                </tr>
            </table>
        </td>
    </tr>
</table>
</div>
</body>

1 个答案:

答案 0 :(得分:0)

我现在正在使用Magento 1.4.1。并且已经根据创建某个事件的商店从不同的商店配置中提取所有需要的变量。是的,您需要在管理员&gt;中更改所有特定设置系统&gt;配置(电子邮件,名称),但不要忘记更改范围(在页面左上角的下拉菜单中)正在更改的设置。

模板中必须没有硬编码值,所有特定设置必须是变量。