We can arrange the order the div’s as columns and then we can give them order property, which orders within the container of the child div’s
Author: Ittymathew Paul
Input Date Field
We can set the start date of the date-picker, data-start-date attributes which sets the value
Cannot read property ‘top’ of undefined
It is very likely that this javascript function was placed before the actual html was loaded. Do something like add a condition
CORS Policy issue on browser
for avoiding this kind of error on chrome search chrome://flags on that , search the CORS and disable that then refresh the page which fixes the issue
Debounce Function
Add a function with debouncedValidation on that function call another, the meaning of this is it will wait for 1000ms then execute the inside function
Get Disabled Form Select data
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
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)})