Script (Add Script)
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:
Navigate to Scripts → Script Info. Click Add Script. Enter the Title. Enter a unique Slug. Write or paste the required code in the Editor. Preview the script if required. Click Submit to save the 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 the Submit button. Before saving, verify the script code and ensure it is mapped to the correct Category or Product. You can use the Code Copy to Editor option to quickly copy and modify existing code before submission.