To get the line fields from a Transaction record we can use the getExtraLineFields() function which is already initialized on the Transaction model providing an sample
Author: Ittymathew Paul
Side Categories on Website
The Side Categories can be configured through Configuration Record > Integrations > Categories
To Get The Current View
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
Using Page Not Found in Extensions
Make sure ‘ErrorManagement.PageNotFound.View’ is defined on extension and refer the following code below return Backbone.Router.extend({ });
Sales Order Fields
Make sure the values set from the item option are having correct values set, for example if there is a record on SO of checkbox type the value should be saved in like “T” or “F” and also if we are trying to set multiselect field with 2 or more options we will use array… Continue reading Sales Order Fields
Show Message on Cart
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
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