NetSuite Web Store multiple images

Post date: Oct 03, 2013 5:47:6 PM

I have found that displaying images from custom fields is a bit tricky.

Using custom fields of type image and than sourcing these fields through tags seems to be unstable. I have noticed that when images are not in the Image folder they will not appear. I have also noticed that certain images do not appear whereas others do. Perhaps this depends on the size of dimensions of the images, however there is no way to know for certain.

The best workaround I have found is to use free-form text fields instead of image fields and to populate these fields with the image URL. Here are the steps:

1) Place your image in the file cabinet

2) Open the image record and copy the image URL

3) Paste the image URL into your custom free-form text field

4) Place the following tag in your Web Store template:

<img src='<%=getCurrentAttribute('item','field_id')%>'>