Add the imgPath variable to store URL of the image, after loading the function will work add the functionality in the function you want to add like adding image or removing any image etc. So on before we can add loading gif or something on UI to show the loading state Or use this method
Author: Ittymathew Paul
Clear Cart
Removing Items from the cart removeAll Function Removes all the items from the cart page, add action while clicking a link or button on the cart page to remove the buttons
Web Store Session
Max for webstore is 20 minshttps://386782-sb2.app.netsuite.com/app/help/helpcenter.nl?fid=section_1534882804.html It can be decreased from the Idle Session Timeout in Minutes setting:Setup > Company > Preferences > General Preferenceshttps://386782-sb2.app.netsuite.com/app/help/helpcenter.nl?fid=section_1534882691.html
Show and Hide Hierarchy on the Custom fields
This field determines whether to show the Hierarchy. For example, we choose a contact for a custom field for a customer record which is dependent on a customer record. If we want to see it as Customer: Contact. we need to check the checkbox or else if you wish to only Contact we don’t want… Continue reading Show and Hide Hierarchy on the Custom fields
Add Modules to checkout in different pages
We can add modules at the checkout screens like review, confirmation, opc. we need to mention the view files on the addModuleToStep. In this we have also added additional condition to check whether we are on right page added a sample code
Get Transactional Line Fields
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
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