There are instances where you Bill a Sales Order that was created from your SuiteCommerce webstore with Payment method Invoice selected, it creates a Cash Sale record instead of Invoice record in the NetSuite UI. This could be due to the forms that was set in Checkout Preferences (Commerce > Websites > Website List > Edit Website record > Shopping tab > Checkout Preferences). If you have set the Sales Order Type field to a custom form,… Continue reading Setting Proper Sales Order Forms in SuiteCommerce
Category: NS SuiteCommerce Advanced
All articles / code related to SuiteCommerce advanced
Performance Optimization with CDN Integration
Content Delivery Networks (CDNs) are an often-overlooked asset in improving the performance of SuiteCommerce Advanced websites. CDNs distribute website content across multiple servers in various locations worldwide, ensuring that users access the closest server for faster load times. Here’s how businesses can benefit: Enhanced Load Speeds: For customers located far from your primary server, CDNs… Continue reading Performance Optimization with CDN Integration
Server-Side Extensions for Unique Customization
One of the most powerful yet underutilized features of SuiteCommerce Advanced is the ability to use server-side extensions to customize and extend its functionality. These extensions act as building blocks that allow developers to create tailor-made solutions for unique business requirements. For example: Custom Data Processing: You can develop extensions to process data directly on… Continue reading Server-Side Extensions for Unique Customization
Automated Shipping Cost Application Based on Country and Order Value for Sales Orders
This article outlines the implementation of a user event script that automatically applies shipping costs based on the shipping country and order subtotal during the creation or update of Sales Orders in NetSuite. To ensure consistency and compliance with regional shipping policies, the script dynamically sets the custbody_jj_custom_shippingcost field with the appropriate freight charge based… Continue reading Automated Shipping Cost Application Based on Country and Order Value for Sales Orders
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