Strike-Through Pricing extension features

Enabling the strike through features in SCA will only help to compare the customer’s configured price level with the default price level. The price displayed in website will be like the price level selected in the customer record will be displayed striking the default price level selected in the configuration record in the field of… Continue reading Strike-Through Pricing extension features

JavaScript code that generates a passcode by encoding the Base64 of existing parameters from the URL and timestamp. Then, load the URL by adding this generated passcode as an additional parameter using the debug console.

const getParameterByName = (name, url) => {   try {     if (!url)       url = window.location.href;     name = name.replace(/[[]]/g, “$&”);     let regex = new RegExp(“[?&]” + name + “(=([^&#]*)|&|#|$)”),       results = regex         .exec(url);     if (!results)       return null;     if (!results[2])       return ‘ ‘;     return decodeURIComponent(results[2].replace(/+/g, ” “));   } catch (e) {     console.error(“Err@ FN getParameterByName”, e);   } } //routeId… Continue reading JavaScript code that generates a passcode by encoding the Base64 of existing parameters from the URL and timestamp. Then, load the URL by adding this generated passcode as an additional parameter using the debug console.

Published
Categorized as JavaScript

Create a slider using Keyframes

We have created an animation using keyframes (slideshow), and on the main div (slideshow-wrapper), we have applied the animation with the following style: animation: slideshow 60s infinite;To add the code in SMT.

Use the trim(), trimStart(), and trimEnd() to Handle White Spaces

The trim() method gets rid of white spaces at both ends of the string. The trimStart() gets rid of white spaces at the start of the string. And trimEnd() removes white spaces at the end of the string.These three methods are useful when we need to clean up user inputs or remove leading/trailing whitespace from strings. Some Example are added below

Transferring Information From Netsuite Back End to Site Front End Using a Suitelet

It’s possible to make a call from an SCS website frontend to the backend via a suitelet. There may be security implications to calling a suitelet from the frontend. Please consult your Team Lead before attempting this, This gives you the ability to get information from the backend, load, edit and create records, call other… Continue reading Transferring Information From Netsuite Back End to Site Front End Using a Suitelet

How to get the Search API response from the suit script

using this methode we can get the responce of api in the suitescript and pass the values throug the model to javascript. searchCasePack: function searchCasePack(itemIds) {     //console.log(‘itemIdssearchCasePack’, itemIds);     var itemIdsArray = [];     var casePackItemSearch = {};     var ItemSearchArr_set = [];     if (itemIds) {    … Continue reading How to get the Search API response from the suit script

Build a Vue project into a single HTML file.

‘vite-plugin-singlefile’ allows you to inline all JavaScript and CSS resources directly into the final index.html file. To install type this in command prompt Add the given code in vite.config.js Build the app and now a single index.html file will be created.