Using Pre-Vinson Services with Vinson Release for SuiteCommerce
Pre-Vinson services can operate with the Vinson release of SuiteCommerce Advanced (SCA) without requiring code changes.
Services included with SuiteCommerce Advanced (SCA) prior to the Vinson release contain all the logic necessary to function with the Vinson release and later.
The Vinson release of SCA ports existing, unmodified services of previous releases. Therefore, any unmodified services using pre-Vinson architecture will function with Vinson without requiring any changes to the code. However, if you made any customizations to pre-Vinson services, you can still use your existing customizations with the Vinson release of SCA. This requires that you edit the appropriate ns.package.json file to use the existing service (.ss file).
With the Vinson release of SCA, each module's ns.package.json file contains the autogenerated-services object. This object includes a list of .ss files to automatically generate when you deploy your site plus their associated Service Controllers. The following example shows the ns.package.json file for the Account module:
1{2"gulp": {3 "javascript": [4 "JavaScript/*.js"5 ]6, "ssp-libraries": [7 "SuiteScript/*.js"8 ]9, "autogenerated-services":10 {11 "Account.ForgotPassword.Service.ss" : "Account.ForgotPassword.ServiceController",12 "Account.Login.Service.ss" : "Account.Login.ServiceController",13 "Account.Register.Service.ss" : "Account.Register.ServiceController",14 "Account.RegisterAsGuest.Service.ss" : "Account.RegisterAsGuest.ServiceController",15 "Account.ResetPassword.Service.ss" : "Account.ResetPassword.ServiceController"16 }17}18}If you have customized any services using pre-Vinson architecture, you can add code to the services array of the appropriate ns.package.json file, forcing the SCA developer tools to use existing .ss files of the same name instead of automatically generating new ones.
To use pre-Vinson services with Vinson release or later:
-
Open the ns.package.json file located in the module containing the service file you want to use.
-
Add the following code to the file:
json, "services": ["SuiteScript/*.ss"]Note:
If a custom service (.ss file) exists in the module that bears the same name as one listed in the
autogenerated-servicesobject, this code prevents the SCA developer tools from automatically generating that .ss file. The dev tools will display a warning, informing you that the service will not be automatically generated because of the custom service with the same name. This warning is displayed as information only and does not require any action. -
Save the ns.package.json file.
-
Use the SCA developer tools to deploy your services to your site.
Related Topics
- Create a Service to Handle HTTP Requests
- Create a Service to Handle HTTP Requests (Pre-Vinson)
General Notices
Frequently Asked Questions (4)
Do I need to modify existing uncustomized pre-Vinson services to work in the Vinson release of SuiteCommerce Advanced?
How can I ensure my customized pre-Vinson services are used in the Vinson release of SuiteCommerce Advanced?
What should I do if a warning appears about custom services not being automatically generated during deployment?
Is it necessary to refactor custom services from before the Vinson release when upgrading to the Vinson release?
Was this article helpful?
More in Commerce
- SuiteCommerce CAPTCHA Configuration Options and Setup
Configure SuiteCommerce CAPTCHA for enhanced security. Enable CAPTCHA for registration, login, guest checkout, and orders.
- Single Sign-On Integration for NetSuite Web Stores
Implement inbound single sign-on integration for NetSuite web stores using SAML or OpenID Connect for seamless access.
- Facets Management for Commerce in NetSuite
Facets management in NetSuite Commerce optimizes item search filters, enhancing performance and improving user experience.
- SuiteCommerce Analytics Data and Cookie Consent Integration
SuiteCommerce Analytics Data enables tracking of shopper behavior. This requires a cookie consent extension for user preferences.
Advertising
Reach Commerce Professionals
Put your product in front of NetSuite experts who work with Commerce every day.
Sponsor This Category