This article provides guidance on managing store-related issues for products built with Three.js, including licensing, refunds, and troubleshooting common customer concerns. ## **1. Licensing & Usage** Three.js itself is an open-source library under the MIT license, but products built with it may have their own licensing terms. Ensure your store clearly states: – The type… Continue reading Store Support for Three.js Products
Month: February 2025
Get any list id to use it as List/Record source type in select field of NetSuite SuiteLet script
While working on a SuiteLet form, have you ever faced problem on setting the exact source ID of a List/Record field. If so, you are not alone. Most of us might have faced such situation. I personally have faced this several times. Here is a small tip for you, so next time you won’t have… Continue reading Get any list id to use it as List/Record source type in select field of NetSuite SuiteLet script
Calculating Kit/Package Weight in NetSuite
In NetSuite, the weight of a kit/package can be calculated in two ways depending on your setup: 1. Manual Weight Entry (for the Kit as a Whole) You can enter the weight of the kit/package manually in NetSuite, typically in the Item Record for the kit. Kit/Package Item Record: Go to Lists → Accounting →… Continue reading Calculating Kit/Package Weight in NetSuite
Capitalizing Strings in JavaScript
/** * @description Capitalizes the first letter of a given string * @param {string} str – The string to capitalize * @returns {string|boolean} – Capitalized string or false if invalid */ function capitalizeFirstLetter(str) { if (typeof str !== “string” || str.length === 0) return false; return str.charAt(0).toUpperCase() + str.slice(1);… Continue reading Capitalizing Strings in JavaScript
Rounding Numbers in JavaScript
/** * @description Rounds a number to the specified decimal places * @param {number} num – The number to round * @param {number} decimals – Number of decimal places * @returns {number|boolean} – Rounded number or false if invalid */ function roundToDecimals(num, decimals) { if (typeof num !== “number” || typeof decimals !==… Continue reading Rounding Numbers in JavaScript
Checking if an Input is a Date Object
/** * @description Check whether the given value is a Date object * @param {any} dateObj – The value to check * @returns {boolean} – True if it’s a valid Date object, otherwise false */ function isInstanceOfDate(dateObj) { return dateObj instanceof Date && !isNaN(dateObj); } console.log(isInstanceOfDate(new Date())); // true console.log(isInstanceOfDate(“2024-02-28”)); // false (string,… Continue reading Checking if an Input is a Date Object
JavaScript code to Add/Subtract days from Date Object
let prevPremVal = null; // Initialize previous premium value customrecord_jj_new_commi_report_ahap29SearchObj.run().each(function(result) { let isPremium = result.getValue(result.columns[36]); // Check if it’s premium let tieredPremium = getTieredPremiumValue(result.getValue(result.columns[38]), result.getValue(result.columns[61])); log.debug(“Is Premium:”, isPremium); log.debug(“Tiered Premium:”, tieredPremium); // If isPremium is true and tieredPremium is valid, use tieredPremium //… Continue reading JavaScript code to Add/Subtract days from Date Object
Implement a Star Rating System in the Item Info Section
Extended the childViews function of ProductLineSkuView and added Global.StarRating as a child view. childViews: _.extend(ProductLineSkuView.prototype.childViews, { ‘Global.StarRating’: function () { return new GlobalViewsStarRatingView({ … Continue reading Implement a Star Rating System in the Item Info Section
Website Flow & Process Design
1. Customer Authentication and Registration Existing Customer: Forgot Password: If the customer indicates they forgot their password, a password reset email is sent. Login: If the customer logs in successfully, the system uses the current domain information and then starts the order process. New Customer: The customer registration is handled by a third party. Once… Continue reading Website Flow & Process Design
Proposal for version upgrade and single page checkout
Install the latest SCA 2024.2 bundle in the Tool Fetch production NetSuite account, including the extension manager. Create a test domain in the Production account for development and testing purposes. Install the bundle for SCA 2024.2 in the Production account. Set up the new SSP and link the domain with the SSP application. Migrate all… Continue reading Proposal for version upgrade and single page checkout