- Analyzed the patch and found that we need to make changes to the .ssp file. We cannot use extend method for doing this, we can only use override method.
- Downloaded the source code and backup of the SSP Application “SuiteCommerce Advanced – Dev 2022.2.0”.
- Open image-20250526-124202.png
- Then we replaced these folders of source code with backup:
- 1. Advanced
- 2. Backend
- 3. Commons
- 4. Extensions
- Open image-20250526-123744.png
- Created an extension for the patch in the Extensions folder. Pasted the file to be changed and replaced the mentioned lines of code.
- Open image-20250526-124505.png
- Also created/updated the
ns.package.jsonanddistro.jsonfiles. - Deployed the SSP but encountered an issue.
- The main objective of this patch is to change the content type of “customFieldsMetadata.ssp” to “Javascript”.
- But content type is text/plain.
- Open image-20250526-145616.png
- Found the path of the customFieldsMetadata.ssp file. So, we need to edit this file in the file cabinet.
- Open image-20250527-101619.png
- Changed the role to “JJ Custom Role 2” and then edited the customFieldsMetadata.ssp file.
- Open image-20250527-103505.png
- Now the content type is changed to “text/javascript”.
- Open image-20250527-102617.png