Script (Scripts)
Overview
The Script Info section allows administrators to create, manage, and configure custom scripts within the application. Scripts can be used to add custom functionality, execute JavaScript code, integrate third-party services, or extend the application's behavior wherever script support is available.
Add Script
To create a new script:
If no script is added, the system displays:
Please add a script first.
Script Details
The following fields are available while creating a script:
Script Mapping
After creating a script, administrators can associate it with specific application content.
A script can be mapped to:
Mapping ensures that the script executes only for the selected content instead of affecting the entire application.
For example:
This provides better control over where and how custom scripts are applied.
Code Copy to Editor
The Code Copy to Editor option allows administrators to quickly copy the generated or existing script into the editor for further modification.
This helps simplify editing without manually copying and pasting the code.
Submit
After completing the script configuration and mapping, click Submit to save the script.
Once submitted, the script becomes available for use within the selected Categories, Products, or other supported modules.
Manage Scripts
Administrators can:
Best Practices
Important:A script is saved only after clicking theSubmitbutton. Before saving, verify the script code and ensure it is mapped to the correctCategoryorProduct. You can use theCode Copy to Editoroption to quickly copy and modify existing code before submission.