2014-09-20 16 views
0

我不確定這段代碼有什麼問題。所以我有一個帶有mc的大容器:可重複和嵌套表格,以及帶mc:edit的td。Shopify和MailChimp - 發行1 mc:可重複使用多個mc:編輯

這是一個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> 

我使用chimpified插件與shopify。我選擇了4種產品在電子郵件中顯示。但是當我看着設計預覽時,我只看到第一列填充了產品信息。第二欄沒有任何內容。表重複。

我不知道爲什麼第二欄沒有任何信息在被填補。

請幫助我。謝謝。

回答

0

首先,沒有結束表標記。此外,您的「repeat_1」位於表格行中,而不是表格本身。您可以參考位於http://chimpified.com/templates的模板以瞭解如何重複章節。看起來需要重複一個表格,而不是表格行。在該示例中,有一個包含兩列的表格,每列包含一個可重複的表格。

+0

嗨,謝謝。我注意到我遺漏了閉幕式的標籤,但這並不重要。 我其實從chimpified模板獲得代碼。所以你說可重複的部分只允許在桌上? 我也嘗試過。結果仍然是一樣的。 – Archampion 2014-09-21 04:30:54