Promocode Error

If the customers encounter the error message: ‘The Coupon code you entered requires you to first login. Please login to your account and re-enter the coupon.’ when trying to apply a Promo Code on the web store Solution Navigate to Commerce > Marketing > Promotions > Edit the Promotion For Non-SuitePromotions Under Primary Information section, enable AVAILABLE TO ALL CUSTOMERS check boxNote: For SuitePromotions enable Everyone checkbox available… Continue reading Promocode Error

Theme Developer Tool – Error On Activation

Step 1: Edit the overrides.js File Locate the gulp/extension-mechanism/overrides.js file in the top-level directory of your theme developer tools installation. Add the following lines of code to the overrides.js file: file_path = file_path.replace(extension_manifest.vendor + ‘/’, ”);file_path = file_path.replace(extension_manifest.name + ‘/’, ”); The following example shows where to place the new lines: Step 2: Deploy and Activate Your Theme

Gift Certificate Error After Return Request Submitted

Step 1: Create the Override File Following the instructions and recommendations in the Patch Using Override Mode procedure, create a new directory and file: /Modules/extensions/ReturnAuthorization@1.0.0/JavaScript/ReturnAuthorization.Model.js. In the new ReturnAuthorization.Model.js file, find and replace the following line of code with the provided code sample. Step 2: Prepare the Developer Tools For Your Patch When preparing the Developer Tools for your patch… Continue reading Gift Certificate Error After Return Request Submitted

Extension Manager Fix

When you have an issue like this on extension manager try some work around mentioned below A. WORKAROUND to access Activation Records:► Accessing the Activation Record via URL:– https://<ACCOUNT_ID>.app.netsuite.com/app/site/hosting/scriptlet.nl?script=<SCRIPT_ID>&deploy=1&compid=<ACCOUNT_ID>&service_name=STEP_2&website_id=<WEBSITE_ID>&domain_id=<CUSTOMER_DOMAIN>&subsidiary_id=&location_id= B.WORKAROUND to create new Activation Record:► If new activation is needed, access new Activation page thru this link:–  https://<ACCOUNT_ID>.app.netsuite.com/app/site/hosting/scriptlet.nl?script=<SCRIPT_ID>&deploy=1&compid=<ACCOUNT_ID>&whence=&service_name=STEP_1 NOTE:         – <ACCOUNT_ID>: Customer… Continue reading Extension Manager Fix

Swal – Confirmation

The “SweetAlert” library, often referred to as “swal,” to create a custom and interactive alert modal with customized buttons, text, and icons. The modal is typically used for user confirmation or information display in a more visually appealing way than the browser’s default alert. .then((willDelete) => { … }): This is a callback that is… Continue reading Swal – Confirmation

Clear Selection Dropdown

To make a selection from the dropdown to from select field, jQuery provides and option for this This part of the code is a jQuery method that sets the selectedIndex property of the selected <select> element to 0. The selectedIndex property determines which option is selected in the dropdown list. By setting it to 0,… Continue reading Clear Selection Dropdown

Published
Categorized as JavaScript

CMS and NetSuite

We have CMS Page and CMS page Type which has a link to the CMS content, the URL will be the link between these records and CMS Content and CMS Content Type will have a common identifier as id, and each content type will have its own custom record which holds the data of the… Continue reading CMS and NetSuite

Nested Object Loop

IF you want to find the value for some specific key which is a nested object, like shown below, if we want to get “custcol_ag_bankname” object value from this we can use the code shown below

Published
Categorized as JavaScript

SCA Development

Extension / Theme / Customization  Before starting the development or customization analyze the requirement properly to make sure it won’t affect the other customization. Make note of all the records associated with the customization if there are any.  If there are any backend functionalities make sure to reduce the service call happening in the background.… Continue reading SCA Development