To message on the cart page , there is a inbuilt functionality for adding message on the cart section , we can make use of it sample is shown beloe
Author: Ittymathew Paul
Session Storage
You can use Session storage to store the value within the browser
Email Subscription for Non-Acc Holders
Select First matrix item on load
Create an extension and set the url compoent by selection the item option adding the code component below
Resize Image on Website
To optimize the Images on the website we can use the image resizing option provided by NetSuite. On Website Record there is a option for adding the different size After adding those size we can use that on the template TPL File as <img src=”{{resizeImage url ‘main’}}” alt=”{{alttxt}}” /> here “main” represents id and we… Continue reading Resize Image on Website
Ordering The div’s
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
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