JJ.CheckoutChange.CheckoutChange.js define( ‘JJ.CheckoutChange.CheckoutChange’ , [ ‘JJ.CheckoutChange.CheckoutChange.View’, ‘LiveOrder.Model’, ‘JJ.CheckoutNotice.CheckoutChange.View’ ] , function ( CheckoutChangeView, LiveOrderModel, CheckoutNoticeView ) { ‘use strict’; return { mountToApp: function mountToApp(container) { // using the ‘Layout’ component we add a new child view inside the ‘Header’ existing view // (there will be a DOM element with the HTML attribute data-view=”Header.Logo”) // more… Continue reading Add a checkout section to submit a custom transaction field.
Author: Anik Babu
Users and Roles in Site Management Tools
To manage content with Site Management Tools, you need a valid NetSuite user account with the right permissions Lists Documents and Files Website (External) Publisher Setup Commerce Categories Website Management Custom Record Permissions for Custom Roles Custom employee roles need Full permission to use Site Management Tools to edit the records below or create custom content. Custom… Continue reading Users and Roles in Site Management Tools
To Change the sales order form based on the Domain.
We can create an extension to check the domain. For this, we have created a configuration record and a transaction body field. If the domain matches as expected, we will add the corresponding form to the sales order during creation. Using a workflow, we can then set a condition: if the transaction body field contains… Continue reading To Change the sales order form based on the Domain.
Customizing Item Name Display in PLP, PDP, and Cart via Configuration
Create Configuration Record “SiteSpecific.fieldName”: { “type”: “string”, “title”: “Field Name”, “description”: “Enter the item field name to display as name for this subsidiary/domain”, “default”: “storedescription”, “group”: “shoppingApplication”, “subtab”: “SiteSpecific” } PLP plp.addToViewContextDefinition(‘Facets.ItemCell.View’, ‘name’, ‘string’, function name(context) { … Continue reading Customizing Item Name Display in PLP, PDP, and Cart via Configuration
Gift certificate on payment page only.
To create a childview under the OrderWizardModuleShowShipments. _.extend(OrderWizardModuleShowShipments.prototype, { template: jj_shipping_billing_tpl, childViews: _.extend({}, OrderWizardModuleShowShipments.prototype.childViews, { ‘GiftCertificates’: function () { … Continue reading Gift certificate on payment page only.
To create custom favorite item page in suitecommerce using custom record
To create a custom search in suitescript with a condition of inactive false and display on the website true. var methodNotAllowedError = { status: 405, code: ‘INVALID_ID’, message: ‘Sorry, you are not allowed to perform this action.’ }; var config = { record: ‘customrecord_favourites’, fields: { internalid: ‘internalid’, customers: ‘custrecord_fav_customer’, item: ‘custrecord_fav_item’ } }; try… Continue reading To create custom favorite item page in suitecommerce using custom record
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