Templates

Documentation article about Templates

·1 min read·View Oracle Docs

Templates

Templates

The templates object lists all HTML template files included in the theme by application. The application object includes one object per application (shopping, myaccount, and checkout). Each application lists each file in the files array.

You should manually add any new template files that you introduce as part of your theme customizations to the files array.

json
1//...
2"templates": {
3 "application":{
4 "shopping":{
5 "files":[
6 "Modules/AddToCartModifier/Templates/add_to_cart_modifier.tpl"
7 //...
8 ]
9 }
10 "myaccount":{
11 "files":[
12 //...
13 ]
14 }
15 "checkout":{
16 "files":[
17 //...
18 ]
19 }
20 }
21}
22//...

Frequently Asked Questions (4)

Do I need to manually update the files array when adding new template files to a theme?
Yes, you should manually add any new template files to the files array to ensure they are included in your theme customization.
Which specific applications are mentioned in the templates object for theme files?
The templates object lists theme files for the applications: shopping, myaccount, and checkout.
Is the templates object applicable to both standard NetSuite and WMS features?
The article does not specify applicability to WMS or standard NetSuite features; it primarily discusses the theme files in applications like shopping, myaccount, and checkout.
How should template files be organized within the application object?
Each application, such as 'shopping', 'myaccount', or 'checkout', should list its template files in a separate files array within the application object.
Source: Templates Oracle NetSuite Help Center. This article was generated from official Oracle documentation and enriched with additional context and best practices.

Was this article helpful?

More in General

View all General articles →