This is incorrect code.
- Code: Select all
[-- LOOP PRODUCT_CROSS_SELL --]
<tr>
<th width="233" style="border-collapse: collapse" border="0"align="center" valign="top" scope="col">[-- PRODUCT_CROSS_SELL --]</th>
<th width="233" style="border-collapse: collapse" border="0"align="center" valign="top" scope="col">[-- PRODUCT_CROSS_SELL --]</th>
<th width="233" style="border-collapse: collapse" border="0"align="center" valign="top" scope="col">[-- PRODUCT_CROSS_SELL --]</th>
</tr>[-- END_LOOP PRODUCT_CROSS_SELL --]
The way any Loop tag functions is it puts out the code between the starting Loop tag and the End_loop tag as many times as there are items that fit that category. If you have 2 cross sell items with the above code you should see each item 3 times, If you have 4 cross sell items you would see each of the 4 3 times. The code should be
- Code: Select all
[-- LOOP PRODUCT_CROSS_SELL --]
<tr>
<th width="233" style="border-collapse: collapse" border="0"align="center" valign="top" scope="col">[-- PRODUCT_CROSS_SELL --]</th>
[-- END_LOOP PRODUCT_CROSS_SELL --]
With only one [-- PRODUCT_CROSS_SELL --] between the beginning and ending LOOP tags.
Any formatting that you need to do may need to be done in the in the section of the template that specifies the layout of each cross-sell item. Generally the Loop outputs a <tr> at the beginning of the loop and a closing </tr> at the end of the loop. If you want 3 columns for the cross-sell items you need to have the opening loop tag like [-- LOOP PRODUCT_CROSS_SELL 3 --] so the loop will occur 3 times once for each product and a <tr> will be output before the 3 products and a closing </tr> will be output after the 3 products. If you have 6 cross sell it would output
<tr>product product product </tr><tr>product product product </tr> It would be up to you to actually format what the "product" part would look like including any opening and closing <div> or <td> tags. and you also need to output the opening and closing <table> tags before the loop starts and close it after it is finished.