It is possible to convert the short path of the image to the full path using ‘getAbsoluteUrlOfNonManagedResources()’. Currently, use the short URL ‘img/imagename.jpg’ when extracting the image URL from the configuration record for easy modification. However, in some cases, the image may not be fetched, and that’s when we use this method. With this method,… Continue reading How can we set the full path of the image using getAbsoluteUrlOfNonManagedResources()?
Author: Arjun S
What is the use of ‘animation-timing-function’ in animation, and how is it used on a website?
The animation-timing function specifies the speed curve of the animation. The speed curve defines the TIME an animation uses to change from one set of CSS styles to another. Syntax: div { animation-timing-function: linear; } Sample Code: <head> <style> div { width: 100px; height: 100px; background: red; position: relative; animation: mymove 5s infinite; animation-timing-function: linear; } @keyframes… Continue reading What is the use of ‘animation-timing-function’ in animation, and how is it used on a website?
How can we enable Customer Ref. No. on the purchase history page of the website?
It’s possible to enable customer reference number in the transaction history table on the website through the NetSuite. For this, go to the website configuration and select the ‘Transaction_List Columns’ subtab from the ‘My Account’ tab. There is a section for the Transaction List Columns order history, where we need to set the ID as… Continue reading How can we enable Customer Ref. No. on the purchase history page of the website?
How to redirect to the login page when clicking on the sign-out button?
In the typical scenario, if the user is logged in and clicks on the sign-out button, they will be redirected to the home page. It’s possible to customize this redirection by changing one feature in Netsuite, allowing us to set it to the Login page. Goto : Commerce->Website->Website->Website list, choose website from the list and… Continue reading How to redirect to the login page when clicking on the sign-out button?
What is the use of ‘animation-iteration-count’ in animation, and how is it used on a website?
The animation-iteration-count property specifies the number of times an animation should run. Sample code <!DOCTYPE html> <html> <head> <style> div { width: 100px; height: 100px; background-color: red; position: relative; animation-name: example; animation-duration: 4s; animation-iteration-count: 3; } @keyframes example { 0% {background-color:red; left:0px; top:0px;} 25% {background-color:yellow; left:200px; top:0px;} 50% {background-color:blue; left:200px; top:200px;} 75% {background-color:green; left:0px; top:200px;} 100% {background-color:red; left:0px; top:0px;}… Continue reading What is the use of ‘animation-iteration-count’ in animation, and how is it used on a website?
How to get the commerce category item details using API?
It’s possible that we can get the item details through the API using this method. With this approach, we can fetch all item details and manually specify the commerce category ID in the API link. categoryresponse: function () { try { var APIresponse =… Continue reading How to get the commerce category item details using API?
How can we use the ‘filedChanged’ and ‘lineInit’ methods of the client script?
We can use these two methods in sales record. First we need to create script then add the below mentioned code in the script. define([‘N/error’], function(error) { function pageInit(context) { console.log(‘init’) }); } function fieldChanged(context) { console.log(‘file changed’) }); } return{ pageInit: pageInit, fieldChanged: fieldChanged,} }) We can use these two methods with any record.… Continue reading How can we use the ‘filedChanged’ and ‘lineInit’ methods of the client script?
How we can remove blink visible issue while clicking the buttons?
It’s possible that we can resolve the blink issue when clicking on the button by styling ‘-webkit-tap-highlight-color: transparent;’. We just need to create the class and apply it to the button, and then we can eliminate that issue. .button-td-colr{ -webkit-tap-highlight-color: transparent; }
How can we set it so that when we click on the download link in an HTML page, the download is done on the same page using JavaScript?
Its possible to we can download the file from current page by using javascript. In <p>, we are using the onClick method to download the file and passing the URL as a parameter
How can we solve the ‘Error: EBUSY: resource busy or locked’ issue when running the ‘gulp extension:local’ command?
Its possible to we can remove ‘Error: EBUSY: resource busy or locked’ issue when running the ‘gulp extension:local’ command . Method 1 : use command npm cache clean Method 2: If cache cleaning does not solve the issue, then we try uninstalling Node.js and reinstalling Node.js.