【问题标题】:Shopify and MailChimp - Issue with 1 mc:repeatable with multiple mc:editShopify 和 MailChimp - 1 个 mc 的问题:可重复多个 mc:edit
【发布时间】:2014-11-14 20:42:50
【问题描述】:

我不确定我的这段代码有什么问题。所以我有一个带有 mc:repeatable 和嵌套表格的大容器,以及带有 mc:edit 的 td。

这是一个 2 列模板。

<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr mc:repeatable="repeat_1">
    <td width="50%" class="leftColumnContent" valign="top">
        <table border="0" cellpadding="0" cellspacing="0" width="100%" class="item">
            <tr>
                <td valign="top">
                    <div mc:edit="image_00">
                        <img src="http://chimpified.com/images/templates/260.gif" style="max-width:260px;display:block;margin-bottom:1em;" class="ch_image" />
                    </div>
                    <div mc:edit="content_00">
                        <h4 class="h4">Product Title</h4>
                        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque ipsum odio, tristique sed pellentesque eget, cursus quis turpis. Mauris sapien massa, vestibulum ut interdum quis, pulvinar sit amet orci.</p>
                        <p class="ch_meta"><strong class="price ch_price">$0.00</strong> <span class="ch_pipe">|</span> <a href="#" target="_blank" class="ch_link">View product</a></p>
                    </div>
                </td>
            </tr>
        </table>
    </td>
    <td width="50%" class="rightColumnContent" valign="top">
        <table border="0" cellpadding="0" cellspacing="0" width="100%" class="item">
            <tr>
                <td valign="top">
                    <div mc:edit="image_01">
                        <img src="http://chimpified.com/images/templates/260.gif" style="max-width:260px;display:block;margin-bottom:1em;" class="ch_image" />
                    </div>
                    <div mc:edit="content_01">
                        <h4 class="h4">Product Title</h4>
                        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque ipsum odio, tristique sed pellentesque eget, cursus quis turpis. Mauris sapien massa, vestibulum ut interdum quis, pulvinar sit amet orci.</p>
                        <p class="ch_meta"><strong class="price ch_price">$0.00</strong> <span class="ch_pipe">|</span> <a href="#" target="_blank" class="ch_link">View product</a></p>
                    </div>
                </td>
            </tr>
        </table>
    </td>
</tr>

我在 shopify 中使用 chimpified 插件。我选择了要在电子邮件中显示的 4 个产品。但是当我查看设计预览时,我只看到第一列充满了产品信息。第二列什么都没有。表重复。

我不确定为什么第二列没有填写任何信息。

请帮助我。谢谢。

【问题讨论】:

    标签: html html-email shopify mailchimp


    【解决方案1】:

    首先,没有结束表标记。此外,您的“repeat_1”位于表格行上,而不是表格本身。您可以参考http://chimpified.com/templates 中的模板以了解如何重复部分。似乎需要重复一个表,而不是一个表行。在示例中,有一个包含两列的表,每列包含一个可重复的表。

    【讨论】:

    • 嗨,谢谢。我注意到我遗漏了结束表标签,但这没关系。我实际上是从黑猩猩模板中得到代码的。所以你是说可重复部分只允许在桌子上?我也试过了。结果还是一样。
    猜你喜欢
    • 2019-02-18
    • 2023-04-04
    • 1970-01-01
    • 2012-04-01
    • 2011-06-26
    • 2023-03-05
    • 1970-01-01
    • 2018-02-07
    • 2015-09-08
    相关资源
    最近更新 更多