In case we need to get the current view displayed on the site. We can use getLayout().currentView; which will be useful to work with extensions based on different views. If we are on checkout we get the view from that section similarly on the pages Sample
Tag: Suitecommerce Extensions
Error: Cannot find module ‘gulp-sass’
If we found this error while running gulp extension:local. Then do following step. 1)In the Command which is open as adminstrator run the command ‘npm install -g windows-build-tools’.2)Then uninstall the nvm setup and reinstall it 3)perform the commands of npm install .Then it will not show the error.
Set Up Extension Developer Tools
Before create an extension, must download the extension developer tools and extract them to create a top-level development directory Use the latest theme and extension developer tools found in the appropriate SuiteBundles folder in your NetSuite File Cabinet. SuiteCommerce and SCA 2019.1 and Later – Use the latest theme and extension developer tools found in the… Continue reading Set Up Extension Developer Tools
How to resolve Error in extension: Module ‘GlobalViews.CountriesDropdown.View’ not found.
In order to add country field in form, I have used ‘GlobalViews.CountriesDropdown.View’ in the view file. But it is creating issue . Solution: These files ‘GlobalViews.CountriesDropdown.View’ are not available in shopping domain and myaccount domain. So remove it from those domains and deploy it to only checkout. This can be done by editing manifest file.
POST action error in form submission using extension
Created an extension to create a Lead record in netsuite on form submission. But while submitting the form it is throwing POST action error. Solution: Check the vendor in manifest and folder name created for the service file in Netsuite. Both should be same. The vendor name is case sensitive so while using the model,… Continue reading POST action error in form submission using extension
EXTENSIONS IN SCA
1. Footer DivisionThe footer division extension lets the user to add the content in the footer as a section under a heading.User can divide the contents on separate heading. Users can also add icons in the footer section. To enable Footer division extension for your website, perform the following steps after installing and activating the… Continue reading EXTENSIONS IN SCA
Contact module as Extension
SCA Extension for contact module in SCA webstore.