Click to See Complete Forum and Search --> : [RESOLVED] Anybody ever developed for NetSuite (CRM software)?


jacobdesch
08-24-2009, 10:16 AM
*I apologize if I'm in the wrong forum, but based on what I've seen, NetSuite seems to most closely resemble .NET development. If I am totally way off-base and this question belongs somewhere else, please advise.*

I realize it's kind of a crap-shoot, but this one's got me really stumped. If you're unfamiliar with NetSuite, I apologize, but here goes.

I'm setting up item list cells for the individual items that display some basic details on the product in that "cell". It's a little different from the default NetSuite layout, because I'm not offering the buy option straight from there. They need to go to the item drilldown level and select some options in order to add to their cart.

I'm having trouble when I try to pull in image thumbnails into each item list cell to show the colors available for that item. I'm doing so using custom item fields named custitem_custom_altimage1, custitem_custom_altimage2, etc, all the way to custitem_custom_altimage10, which are images that the client will upload themselves. Here's how the item list cell is set up. This code gets duplicated throughout the page to form the item list.
<table border="0" cellspacing="0" cellpadding="0" id="items">
<tr>
<td class="item-header"><A href="<%=getCurrentAttribute('item','storeurl')%>"><%=getCurrentAttribute('item','storedisplayname2')%></a></td>
</tr>
<tr>
<td id="item-bg"><table border="0" cellspacing="0" cellpadding="0" id="item-interior-table">
<tr>
<td rowspan="2" class="item-img"><A href="<%=getCurrentAttribute('item','storeurl')%>"><%=getCurrentAttribute('item','storedisplaythumbnailhtml')%></A></td>
<td class="item-desc" no><h1>Volume:</h1>
<p><%=getCurrentAttribute('item','custitempackvolume')%></p>
<img src="http://shopping.netsuite.com/c.999464/site/images/divider_line.jpg" />
<h1>Weight:</h1>
<p><%=getCurrentAttribute('item','custitempackweight')%></p>
<img src="http://shopping.netsuite.com/c.999464/site/images/divider_line.jpg" />
<h1>Colors:</h1>
<p class="colors">
<img src="<%=getCurrentAttribute("item","custitem_custom_altimageth4")%>" />
<img src="<%=getCurrentAttribute("item","custitem_custom_altimageth3")%>" />
<img src="<%=getCurrentAttribute("item","custitem_custom_altimageth2")%>" />
<img src="<%=getCurrentAttribute("item","custitem_custom_altimageth1")%>" />
<img src="<%=getCurrentAttribute("item","custitem_custom_mainth")%>" />

<img src="<%=getCurrentAttribute("item","custitem_custom_altimageth9")%>" />
<img src="<%=getCurrentAttribute("item","custitem_custom_altimageth8")%>" />
<img src="<%=getCurrentAttribute("item","custitem_custom_altimageth7")%>" />
<img src="<%=getCurrentAttribute("item","custitem_custom_altimageth6")%>" />
<img src="<%=getCurrentAttribute("item","custitem_custom_altimageth5")%>" /></p>
</td>
</tr>
<tr>
<td class="item-price"><p class="price"><%=getCurrentAttribute('item','salesPricelistHTML')%></p>
<p><A href="<%=getCurrentAttribute('item','storeurl')%>">DETAILS &gt;</a></p></td>
</tr>
</table></td>
</tr>
</table>
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=0a0105531f430a05e316503a44da820c92832f2e48ed.e3eSc3uRax8Te34Pa38Ta38Pah50?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? NetSuite has it's own built-in command, (<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 (NetSuite experience or otherwise) 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.*

markrobinson
09-28-2009, 05:12 AM
It looks very complex programming.

jacobdesch
09-29-2009, 09:10 AM
Actually (kinda) figured this one out. It's a know bug for NetSuite that should be fixed in the latest release (scheduled to drop sometime in November, I think)

jacobdesch
09-27-2011, 11:15 AM
Cool story, bro.