Working with SMT Landing Pages in a Sandbox Account

This topic applies to

Applies to

SuiteCommerce Web Stores | Site Management Tools

Note

Note: This topic applies only if your sandbox account still resides on the system.sandbox.netsuite.com domain. See Sandbox Changes in North America.


When working with Site Management Tools in a sandbox account, you must 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.

For configuration information see Configure Properties.

To set the Landing Pages URL

  1. Select the domain to configure at Setup > SuiteCommerce Advance > Configuration.

  2. In the SuiteCommerce Configuration record, navigate to the Integrations subtab and then the Site Management Tools subtab.

  3. In the Landing Pages URL field, enter https://system.sandbox.netsuite.com.

  4. Click the Save button.

To set the Landing Pages URL (pre-Elbrus)

  1. Create a custom CMSAdapter module to extend CMSadapter.model.js

  2. Add a custom property to set cmsPagesUr l as follows:

    'https://system.sandbox.netsuite.com/api/cms/pages?site_id=' + siteSettings.siteid + '&c=' + nlapiGetContext().getCompany() + '&{}'

For more information on customizing a module, see Customize and Extend Core SuiteCommerce Advanced Modules. For information on deploying customizations to a sandbox account see Deploy to a NetSuite Sandbox

Note

When the sandbox account is refreshed, your customization will be overwritten, and they will need to be redeployed to the sandbox account.


Important

If you make customizations in your sandbox account and then move those customizations to production, you must edit the cmsPagesUrl in the CMSadapter.model.js file to change the sandbox URL to the production URL.