Local Server Theme Testing for SuiteCommerce Customizations
Test SuiteCommerce theme customizations on a local server using Gulp commands, ensuring accuracy before deployment.
Testing your SuiteCommerce theme customizations locally is an essential step before deploying to NetSuite. This approach enables you to ensure functionality and design accuracy without impacting your live environment.
Why Test Locally?
Running tests on a local server allows you to verify frontend changes effectively. However, it's important to understand that deploying and activating your theme in NetSuite is necessary to see changes made to skins or Sass variables specified in the SuiteCommerce Template.
How to Test Your Theme on a Local Server
To set up and test your theme locally, follow these steps:
-
Open Your Command Line: Navigate to your local developer environment and open a command line or terminal, accessing your top-level development directory.
-
Run the Command:
bashgulp theme:localWarning: Running this command compiles and deploys your theme to a local server while updating the
manifest.jsonfile. Any manual edits to this file will be lost unless you run:bashgulp theme:local --preserve-manifestThis command will help to preserve any manual changes you made to your
manifest.jsonfile, which is crucial for maintaining custom configurations. -
Access Your Local Theme: After executing the command, you can view your theme in a browser using URL patterns:
- For shopping:
http://<DOMAIN_NAME>/c.<ACCOUNT_ID>/<SSP_APPLICATION>/shopping-local.ssp - For my account:
http://<DOMAIN_NAME>/c.<ACCOUNT_ID>/<SSP_APPLICATION>/my_account-local.ssp - For checkout:
http://<DOMAIN_NAME>/c.<ACCOUNT_ID>/<SSP_APPLICATION>/checkout-local.ssp
Be sure to replace the placeholders with your specific settings:
Variable Replacement Example DOMAIN_NAME Your NetSuite website record domain. http://www.mysite.comACCOUNT_ID Your NetSuite account ID. c.123456SSP_APPLICATION The URL root for your SuiteCommerce implementation, e.g. scs for SuiteCommerce, sca-dev-... for SuiteCommerce Advanced. scs or sca-dev-aconcagua - For shopping:
Important Notes
- If you make additional changes or add new files after the local server launch, remember to rerun the
gulp theme:localcommand to ensure those updates are included.
What Happens When You Test a Theme?
Executing the gulp theme:local command compiles the theme's source files (including extensions) to a LocalDistribution/tmp directory, where your customized application is served from. Gulp.js also initializes watch tasks for automatic updates when files change, allowing for real-time testing of your modifications.
Next Steps
After successfully testing your theme, you are ready to deploy it to NetSuite. Refer to the documentation on Deploying a Theme to NetSuite for step-by-step instructions. Remember to activate your theme for your chosen website domain afterwards to apply the changes.
Key Takeaways
- Local testing ensures frontend changes function correctly before deployment.
- Use command-line Gulp commands to compile and check your theme.
- Preserve your
manifest.jsonchanges during local server use. - Remember to refresh the local setup after any modifications.
- Deployment follows successful local testing to NetSuite.
Source: This article is based on Oracle's official NetSuite documentation.
Frequently Asked Questions (4)
Do I need specific permissions to test SuiteCommerce themes locally?
How can I preserve manual changes to the 'manifest.json' file when testing themes locally?
What should I do if I make additional changes after launching the local server?
Is there any impact on my live environment when testing themes locally?
Was this article helpful?
More in Commerce
- Available Items Only Feature in NetSuite 2026.1
Available items only filtering boosts sales efficiency in NetSuite 2026.1 with Intelligent Item Recommendations.
- Commerce Extensions in NetSuite 2026.1
Commerce Extensions in NetSuite 2026.1 enhance performance and user experience in eCommerce.
- Convert Multiple Transaction Line Items into Configured Items in
Enhance transaction processing in NetSuite by converting multiple line items into configured items with improved session handling.
- New SuiteCommerce Features in NetSuite 2026.1
New SuiteCommerce features in NetSuite 2026.1 enhance user experience and improve eCommerce efficiency.
