Hi all,
Having some trouble with custom item fields when they get pulled into the item list cells. I've set it up so that we can upload thumbnail images of the available colors for each item. I'm doing so using custom item fields named custitem_custom_altimage1, custitem_custom_altimage2, etc, all the way to custitem_custom_altimage10. Here's how the individual item list cell is set up:
&lt;table border="0" cellspacing="0" cellpadding="0" id="items"&gt; &lt;tr&gt; &lt;td class="item-header"&gt;&lt;A href="&lt;%=getCurrentAttribute('item','storeurl')%&gt;"&gt;&lt;%=getCurrentAttribute('item','storedisplayname2')%&gt;&lt;/a&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td id="item-bg"&gt;&lt;table border="0" cellspacing="0" cellpadding="0" id="item-interior-table"&gt; &lt;tr&gt; &lt;td rowspan="2" class="item-img"&gt;&lt;A href="&lt;%=getCurrentAttribute('item','storeurl')%&gt;"&gt;&lt;%=getCurrentAttribute('item','storedisplaythumbnailhtml')%&gt;&lt;/A&gt;&lt;/td&gt; &lt;td class="item-desc" no&gt;&lt;h1&gt;Volume:&lt;/h1&gt; &lt;p&gt;&lt;%=getCurrentAttribute('item','custitempackvolume')%&gt;&lt;/p&gt; &lt;img src="http://shopping.netsuite.com/c.999464/site/images/divider_line.jpg" /&gt; &lt;h1&gt;Weight:&lt;/h1&gt; &lt;p&gt;&lt;%=getCurrentAttribute('item','custitempackweight')%&gt;&lt;/p&gt; &lt;img src="http://shopping.netsuite.com/c.999464/site/images/divider_line.jpg" /&gt; &lt;h1&gt;Colors:&lt;/h1&gt; &lt;p class="colors"&gt; &lt;img src="&lt;%=getCurrentAttribute("item","custitem_custom_altimageth4")%&gt;" /&gt; &lt;img src="&lt;%=getCurrentAttribute("item","custitem_custom_altimageth3")%&gt;" /&gt; &lt;img src="&lt;%=getCurrentAttribute("item","custitem_custom_altimageth2")%&gt;" /&gt; &lt;img src="&lt;%=getCurrentAttribute("item","custitem_custom_altimageth1")%&gt;" /&gt; &lt;img src="&lt;%=getCurrentAttribute("item","custitem_custom_mainth")%&gt;" /&gt; &lt;img src="&lt;%=getCurrentAttribute("item","custitem_custom_altimageth9")%&gt;" /&gt; &lt;img src="&lt;%=getCurrentAttribute("item","custitem_custom_altimageth8")%&gt;" /&gt; &lt;img src="&lt;%=getCurrentAttribute("item","custitem_custom_altimageth7")%&gt;" /&gt; &lt;img src="&lt;%=getCurrentAttribute("item","custitem_custom_altimageth6")%&gt;" /&gt; &lt;img src="&lt;%=getCurrentAttribute("item","custitem_custom_altimageth5")%&gt;" /&gt;&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="item-price"&gt;&lt;p class="price"&gt;&lt;%=getCurrentAttribute('item','salesPricelistHTML')%&gt;&lt;/p&gt; &lt;p&gt;&lt;A href="&lt;%=getCurrentAttribute('item','storeurl')%&gt;"&gt;DETAILS &gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;The problem arises when an item that has more available colors precedes an item that has less available colors. Say I have two items on the page, the first one has three colors and the second only has one (as seen here: http://shop.mysteryranch.com/s.nl;jsessionid=0a01074d1f43a5174c43d9b344e98f14cde88315f460.e3eTaxaQbxmTe34Pa38Ta38Pahb0?sc=11&category=9) The second item is picking up two of the colors from the previous item because the second item doesn't have as many available colors. I know it's because the item fields are being repeated and the colors are being pulled in again, but how do I stop that from happening? It seems like I would use <NLPROCESSONCE> but that eliminates any other future instances of whatever you enclose within that tag, so colors further down the page don't display at all. Am I just not using <NLPROCESSONCE> correctly? Is there a different way to wrap it around this layout to prevent this?Does anyone have any ideas to get around this or otherwise remedy the repetition of colors that I've got going on? Any help would be very much appreciated. Thanks in advance.*Sorry for the novel of a post, but I wanted to make sure I adequately explained exactly what was happening.*