Working with Site Management Tools Landing Pages in a Sandbox Account

When you work with Site Management Tools (SMT) in a sandbox account, you need to set the landing page URL to match your sandbox domain. If you don’t set this up, you’ll get a Page Not Found error when you try to open an SMT landing page in your sandbox.

For configuration information, see Configure Properties.

To set the Landing Pages URL:

  1. Go to Commerce > Websites > Configuration > [Select Site] and [Select Domain].

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

  3. In the Landing Pages URL field, enter your sandbox account’s URL.

    The sandbox domain is your account’s domain plus the unique sandbox identifier. For example, https://345678_SB1.app.netsuite.com.

  4. Click Save.

See NetSuite Sandbox and URLs for Account-Specific Domains for additional information.

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 cmsPagesUrl is as follows:

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

    This sample URL uses your account’s domain and the sandbox’s unique identifier.

For more information about customizing a module, see Develop Your SCA Customization. For information about deploying customizations to a sandbox account, see Deploy to a NetSuite Sandbox.

Note:

After you refresh your sandbox account, your customization is overwritten, so you’ll need to redeploy it.

Important:

If you move your customizations from sandbox to production, edit the cmsPagesUrl in the CMSadapter.model.js file to update the sandbox URL to the production URL.

Related Topics

General Notices