Tag: EXTENSION
After deploy extension is not visible
When we change in an extension and deployed. After activation in netsuite the extension get disappear from extension list. To correct make the extension back change in manifest file in the extension “target_version”: {}. and deploy again and by selecting the extension activate again.
Extension to change the quantity validation message in PDP page.
Redirect to Cart Page Extension
Extension for redirecting to cart page when user logs in from checkout page. Code snippet:
Enable features in SCA
Need to get whether a feature in enabled in SCA webstore or not. To check whether the feature us enabled, In suitescript check “SC.Models.Init” and for javascript check the “SC.ENVIRONMENT“. Check whether “payment instrument feature” is enabled or not.
Extension Development Life Cycle
Stage Activity Gulp Command to Use Result 1 Create New ExtensionCreate a baseline extension — Get started by creating the files needed for a basic Hello World extension. Create New Extensiongulp extension:create Create New ExtensionExtension developer tools create a Workspace directory and a subdirectory that contains the files and initial module for your extension. This… Continue reading Extension Development Life Cycle
Updating Item options In Cart
For updating an item option in the cart when a customer adds any item to the cart, we can update it by using the function setItemOptions. Syntax: setItemOptions(itemlineid,optionMap) Updates the item options for a particular cart row. Parameters itemlineid [required] optionMap [required] {Array of Item Option ID value pairs} Example Extending Liveorder Model file to update the… Continue reading Updating Item options In Cart
Editable Unit of Measure in wish list page using extension
Entry point file Added a child view and pass model which contains the product details. view file
Resolve Error: “getaddrinfo ENOTFOUND xxxxxx_sb1.restlets.api.netsuite.com” when Fetching Theme and Extension files in Sandbox
Solution In the Theme or Extensions Development Tools directory, open this file: …/ns_npm_repository/oauth1/index.js Find the following line of code: return this._baseStep(`${this.vm ? ” : account}${this.urls.step3}`, params); Replace it with the following line of code: return this._baseStep(`${this.vm ? ” : account.replace(‘_’,’-‘)}${this.urls.step3}`, params); In the Theme or Extensions Development Tools directory, open this file: …/gulp/ns-deploy/net.js Find the… Continue reading Resolve Error: “getaddrinfo ENOTFOUND xxxxxx_sb1.restlets.api.netsuite.com” when Fetching Theme and Extension files in Sandbox
Category Display Based on the domain
The extension is used to display the categories based on the domain if the user is not signed in to the website. Therefore only items under related categories will be displayed in the webstore.