Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
Display "Add To Cart" Buttons with prices for matrix items
I have a set of matrix items and I am trying to display an add to cart button for each matrix item and then price above each button, however I am having issues getting the array of itemid numbers given the parent itemid number.
The goal is to hide prices of certain matrix items, while showing others. Here's my imagining of the code that would work, but isn't written in suitescript (it's a conglomeration of javascript & php) The code I'm having trouble with is highlighted
matrixList = Array();
matrixList = <%=getCurrentAttribute('item','matrixitemlist')%>
//echo matrixList; red, green, blue
item = <%=getCurrentAttribute('item',matrixItem[0],'pricelevel1')%>
0