Customize WebSphere Commerce Accelerator JavaScript files
If you customize JavaScript files that were originally shipped with the product, you should make the updates directly to the file in question. However, be aware that migration will overwrite your changes. If you want to keep you changes, make backup copies of any changed files, and reapply the changes to your new files.
To create new JavaScript files:
- Open the WebSphere Commerce development environment...
Start | Programs | IBM WebSphere Commerce development environmentand switch to the relevant view...
J2EE Perspective Project Navigator view Enterprise, Professional Express Project Navigator view Express - Navigate to...
CommerceAccelerator | Web Content/javascript javascript folder (right-click) | New | Folder- In the Folder name field, enter custom.
- Repeat this process until you have created the following path...
Web Content/javascript/custom/component...where component represents the tool component to which the JavaScript file corresponds.
- Select...
custom/component folder (right-click) | New | JavaScript file- In the File name field, enter a unique name.
For the purposes of this scenario, enter component.js, where component represents the tool component to which the file corresponds.
- Click Finish to create the file and open it in an editor.
- Update the file as necessary.
- Update any JSP files as appropriate such that they reference the new JavaScript file in the new custom folder.
Related concepts