When working with Site Management Tools in a sandbox account, It is needed to configure the URL for landing pages to reflect the domain of the sandbox environment. If you fail to set this configuration property, you receive a Page Not Found error when attempting to access an SMT landing page in the sandbox environment.
Configure Properties for a Domain
- In NetSuite, go to Commerce > Websites> Configuration.
- Select the site that you want to configure from the Select Website list.
- Select the specific domain that you want to configure from the Select Domain list.
- Click Configure.
Copy a SuiteCommerce Configuration record
- In NetSuite, go to Commerce > Websites> Configuration.
- Click Copy Configuration.
- Select the origin website from the Origin Website list.
- Select the origin domain from the Origin Domain list.
- Select the destination site from the Destination Website list.
- Select the destination domain from the Destination Domain list
- Click Copy Configuration.
To set the Landing Pages URL
- Go to Commerce > Websites > Configuration > [Select Site] and [Select Domain].
- In the SuiteCommerce Configuration record, navigate to the Integrations subtab and then the Site Management Tools subtab.
- In the Landing Pages URL field, enter the URL for your sandbox account.
The format of the sandbox domain is your account specific domain appended with the unique identifier for the sandbox, for example, https://345678_SB1.app.netsuite.com.
4.Click Save.
To set the Landing Pages URL (pre-Elbrus)
- Create a custom CMSAdapter module to extend
CMSadapter.model.js - Add a custom property to set
cmsPagesUrlis as follows:
‘https://345678_SB1.app.netsuite.com/api/cms/pages?site_id=’ + siteSettings.siteid + ‘&c=’ + nlapiGetContext().getCompany() + ‘&{}’