Prevent Free Shipping When a Handling Fee is Applied

We need to add the following code : try {                 _.extend(OrderWizardModuleShipmethod.prototype, {                     getContext: _.wrap(OrderWizardModuleShipmethod.prototype.getContext, function (fn) {                         const context = fn.apply(this, _.toArray(arguments).slice(1));      … Continue reading Prevent Free Shipping When a Handling Fee is Applied

Setting Up Personalized Catalog Views

To use PCV in your web store: Determine the customer segments and item segments you require for your web store. Create customer segments – see Defining Customer Segments. Create item segments – see Defining Item Segments. Enable the Personalized Catalog Views feature – see Enabling Personalized Catalog Views Ensure that the people working with PCV have the correct… Continue reading Setting Up Personalized Catalog Views

To display custom shipping methods at checkout based on the configuration record

_.extend(LiveOrderModel, { // @method getShipMethods // @param {Array<String>} order_fields // @returns {Array<OrderShipMethod>} getShipMethods: function getShipMethods(order_fields) { try { var shipmethods = _.map(order_fields.shipmethods, function (shipmethod) { var rate = Utils.toCurrency(shipmethod.rate.replace(/^D+/g, ”)) || 0; return { internalid: shipmethod.shipmethod, name: shipmethod.name, shipcarrier: shipmethod.shipcarrier, rate: rate, rate_formatted: shipmethod.rate }; }); order_fields.nsShippMethods = shipmethods; var customerShipMethods = _.map(_.filter(Configuration.get(‘customshipmethods.setupshipmethod’), function (shipId)… Continue reading To display custom shipping methods at checkout based on the configuration record

Hide the dot indicators in the BX Slider of SuiteCommerce

1. Check for Carousel Image Length:     – Use `Configuration.get(‘home.themeCarouselImages’)` to retrieve the array of carousel images.     – If the array length is greater than or equal to 1, hide the pager.    2. JavaScript Code:         var slider = Configuration.get(‘home.themeCarouselImages’);         // Initialize BXSlider and hide the pager if the condition… Continue reading Hide the dot indicators in the BX Slider of SuiteCommerce

To format the date using ‘N/format’ in NetSuite

/** * @NApiVersion 2.x * @NScriptType Suitelet */ define([‘N/format’, ‘N/log’], function(format, log) { function onRequest(context) { if (context.request.method === ‘GET’) { var inputDate = ‘2/28/2025’; // MM/DD/YYYY format try { // Parse using NetSuite standard method var parsedDate = format.parse({ value: inputDate, type: format.Type.DATE }); // Convert to strict ISO format (YYYY-MM-DD) using standard Date… Continue reading To format the date using ‘N/format’ in NetSuite

SuiteCommerce Transition: Sections to Consider When Moving from One NetSuite Account to Another

Objectives:  Ensure a Seamless Transition  Migrate Bastion Pacific’s NetSuite instance with minimal disruption.  Maintain system integrity throughout the transition process.  Preserve Data and Configuration  Perform a full backup of SuiteCommerce settings, including email templates(in cases where they are used within the website),PDF templates, themes, extensions, and workflows, to ensure data integrity and recovery if needed. … Continue reading SuiteCommerce Transition: Sections to Consider When Moving from One NetSuite Account to Another

Implementing Google reCAPTCHA v3 for Login and Registration Pages in SuiteCommerce

Description: This article provides a step-by-step guide for integrating Google reCAPTCHA v3 into Login and Registration pages in SuiteCommerce to prevent automated and bot-driven activities. The implementation covers frontend token generation, passing the token to backend SuiteScript 2.0 for verification, and ensuring only valid requests proceed. Step-by-Step Process 1. Configure Google reCAPTCHA Visit the Google… Continue reading Implementing Google reCAPTCHA v3 for Login and Registration Pages in SuiteCommerce

Importance of customer contact roles in SCA

The Importance of Customer Contact Roles in SuiteCommerce Advanced (SCA) Customer contact roles play a crucial role in SuiteCommerce Advanced (SCA) by enabling efficient management and organization of contacts associated with various records, such as opportunities, customers, vendors, and partners. These roles are essential for users to view and edit contacts using the Customer Center… Continue reading Importance of customer contact roles in SCA

Resolving Incomplete Configuration Records After a Sandbox Refresh

Sometimes, after a sandbox refresh, the configuration record may not be displayed completely, even after activating all extensions and themes. In some cases, only the configuration of some default templates may be shown, while most of the configurations for custom-made extensions might be missing. To resolve this issue and retrieve the complete configuration record, follow… Continue reading Resolving Incomplete Configuration Records After a Sandbox Refresh