Using the disabled attribute prevents the user from changing the value, but does not submit the value with the form. For resolving we can use this method another input field and make it as Hidden
Author: Ittymathew Paul
Set Up Line Item in SO
You can add the item option from the PDP after placing the order, Get the id of the line option and pass the value as shown below var pdp = application.getComponent(‘PDP’);pdp.setOption(‘custcol_vv_req_customization’, ‘F’)
Empty the Cart on SCA
Empty the entire cart if it contains more than 1 item it is not easy to empty one by one, for that we can remove by adding altering the domain
Get Index in each function
If you use the index for any of the code while using _.each, You can get the index of the current iteration by adding another parameter to your iterator function
Get Components on SCA Domains
We can get components based on https://system.netsuite.com/help/helpcenter/en_US/APIs/SuiteCommerce/Extensibility/Frontend/index.html added screenshot below for reference var container = SC.Application(‘Shopping’)var profile = container.getComponent(‘UserProfile’) profile.getUserProfile().then(function(e){console.log(e)})
Access a parent variable Inside an object
Example , We need {{externalValue}} inside {{#each}} {{externalValue}} <select name=”test”>{{#each myCollection}}<option value=”{{id}}”>{{title}} {{externalValue}}</option>{{/each}}</select>
Nested Grouping Item list based on the Custom fields
Adding Captcha On Guest and Login Page
RegistrationRecaptcha.GoogleRecaptcha.js RegistrationRecaptcha.js RegistrationRecaptcha.View.js RegistrationRecaptcha.Model.js RegistrationRecaptcha.Service.ss Template
Update SO Body fields from website checkout
Add the custom field on the SO (transactional body fields ) or use the active fields. Make sure the display on the website is checked as shown in the figure. Also, add the field id on the configuration record of the domain as shown in the figure We can pass the data from checkout to… Continue reading Update SO Body fields from website checkout
To Run Default NetSuite Extension Locally on your System
If you want to run the Netsuite Extension local like FeaturedCategory. First on Go to Netsuite and file cabinet SuiteScripts > extensions > NetSuite > FeaturedCategory@1.2.0 choose the extension from the path like here we have chosen FeaturedCategory@1.2.0. Download the file and add it to the workspace you have fetched and run locally so we can get the default Netsuite Extension… Continue reading To Run Default NetSuite Extension Locally on your System