How to Add script parameter on General Preferences tab in Netsuite

Open the corresponding script to be updated Go to the Parameters tab 3. Click on New Parameter, while creating a new parameter select the preference as Company and add the Label, ID type, etc. 4. Click Save and Go to Netsuite > set up > company > general preferences then you can see the newly… Continue reading How to Add script parameter on General Preferences tab in Netsuite

Deploying Dev code to Elbrus version

While deploying dev code to the Elbrus version, note the following things. Select node version 6.11.3 ( In Netsuite help center they have given version 4.x.x and later) 6.11.3 is working properly. Then while deploying, unlike other SCA versions first we have to select the role. So for confirming that we deploy to the right… Continue reading Deploying Dev code to Elbrus version

Add Address Limit Checkbox to Restrict Adding/Editing/Deleting of any Address to the Address book of Customer Record in Netsuite.

Create an entity field(checkbox) and add the condition if the checkbox enabled the customer not allowed to add or delete the address. For achieving the solution we can use the Client script 2.0 : first, need to create a custom entity field in NetSuite with type as a checkbox. Add the enity field to customer… Continue reading Add Address Limit Checkbox to Restrict Adding/Editing/Deleting of any Address to the Address book of Customer Record in Netsuite.

Restrict the adding of address in customer Record

Create suite script to restrict the adding of address in customer Record. “Address Lock” so if the customer has 30 addresses in the address book, he won’t be able to edit/delete/add the address. The user should not be allowed to edit, create or delete when the customer has 30 addresses on the address book in… Continue reading Restrict the adding of address in customer Record

Showing Pop Up message for items having no preview image in PDP.

This code is for an alert pop up message when there is no preview image available for a personalised item(Boulevard website, PTC) in PDP . code snippet: Note: Here the value of set Timeout function is very important, the pop will appear only after the default image is loaded, so due to rendering of image… Continue reading Showing Pop Up message for items having no preview image in PDP.

How to Add a New div Between Two Elements in an HTML Template Using JQurey

Adding a new element between two already existing elements in a template file using Javascript and JQuery. This method can be used for editing templates without directly editing theme in SCA websites. This method can be used in extensions. HTML code: Javascript + jQuery: Output: Elem 1 New Elem Elem 2

Adding a Value in a Custom Field in Sales Order According to Customer Segment

Write “WEB PACKAGING” in the field for Packing Note (Field ID: custbody5) If the CUSTOMER SEGMENT = RETAIL BLVD for orders imported into NetSuite from BLVDCA.COM. solution : For adding a value to a custom field in the sales order based on the customer segment (a field in Netsuite customer record) and website : Update… Continue reading Adding a Value in a Custom Field in Sales Order According to Customer Segment

Editing Email template file for Sales Order

For making changes in email template for sales orders, like changing item images and item options. First we need to edit corresponding email template file. To open the file from the Netsuite account got to Setup>Company>Email>System Email Templates Then we can see the editing window, clicked on the below marked icon ‘div’ for viewing the… Continue reading Editing Email template file for Sales Order

Integrating Google recaptcha V2 to an HTML form

Sign up and get your keys here: https://www.google.com/recaptcha/admin (you will get a SITE key and a SECRET key, used later) The following instructions are for integrating recaptcha v2, there is another version also recaptcha V3. While sign up, need to mention the domains and mail id using for this purpose. The recaptcha will only work on the… Continue reading Integrating Google recaptcha V2 to an HTML form