Using Web Site Tags in Hosted Files

You can use the NetSuite Web Site Tags to build custom pages for your site that have a similar look and feel to other non-custom areas of your site. You can also display information from item and customer records in your NetSuite account on your website. Note that Web Site Tags are not supported in SuiteCommerce Advanced.

Use the following format to insert information from a record in your account:

          <%=getAttribute('recordtype',id,'attribute')%> 

        

For example, you can use the code sample below to display an item in your HTML website. Note that the internal ID for the item record must be referenced in the Attribute tag:

          <h2><%=getAttribute('item',10,'itemid')%><%=getAttribute('item',10,'stockstatusmessagehtml')%></h2>
<br><br><%=getAttribute('item',10,'storedetaileddescription')%>
<br><br>
Only<%=getAttribute('item',10,'salespricehtml')%>
<br><br><br>
<table>
<td><%=getAttribute('item',10,'addtocarthtml')%></td>
<td><%=getAttribute('item',10,'storedisplayimagehtml')%></td>
</table> 

        

The internal ID is found in the URL of the record page in your account. For more information, see How do I find a record's internal ID?

See Tags for Use in HTML Pages and Site Templates to view a chart including the record types attributes you can use.

Important:

Web site tags are not substituted in hosted files greater than 2 MB in size.

Related Topics

Using Attribute Tags in Site Templates
Creating Attribute Tags for Custom Records and Custom Fields
Creating Attribute Tags for Standard Records
Creating Attribute Tags

General Notices