Accessing the JavaScript Console Open Chrome DevTools with Command+Option+I (Mac) or Control+Shift+I (Windows/Linux), then select the Console tab. This is your starting point for inspecting global objects and variables in SCA. Inspect the Global SC Variable SCA uses a global SC variable that holds site data. Type SC in the console to view its objects,… Continue reading Troubleshoot with your Browser’s Developer Tools
Author: Vyshnav K K
Troubleshooting Gulp command failures in an SCA project
While working on a SuiteCommerce Advanced (SCA) project, we often use gulp commands such as gulp extension:fetch or gulp extension:deploy to manage and deploy extensions. However, a common issue that can arise is Gulp appearing to be installed, yet failing to execute properly—throwing errors like “Local gulp version unknown”. Uninstall the current Node.js version Remove… Continue reading Troubleshooting Gulp command failures in an SCA project
Restricting Cart to 100 Unique Items in SCA websites
The customization modifies the addToCart method of ‘Cart.AddToCart.Button.View’ view file’s prototype using Underscore’s _.wrap function to intercept the original method. It checks the current number of unique items in the cart by accessing the LiveOrderModel and its lines collection. If the cart already contains 100 unique items and the new item isn’t already present, the… Continue reading Restricting Cart to 100 Unique Items in SCA websites
Usage of SweetAlert2 in Elbrus version
SweetAlert2 is a powerful JavaScript library designed to replace native browser alerts with customizable, and responsive pop-up modals in SuiteCommerce Advanced (SCA) websites. It significantly enhances the user experience by supporting features such as icons, animations, and fully configurable buttons—making it ideal for confirmations, notifications, and form-related interactions. Example Implementation The example below demonstrates how… Continue reading Usage of SweetAlert2 in Elbrus version
FreeMarker in NetSuite SCA: Syntax and Use Cases
FreeMarker is a Java-based template engine designed to generate text output (e.g., HTML, XML, emails) by combining templates with dynamic data. It is widely used in web applications, enterprise systems like NetSuite, and other platforms requiring dynamic content generation. FreeMarker’s strength lies in its flexibility, allowing developers to embed logic, perform calculations, and format data… Continue reading FreeMarker in NetSuite SCA: Syntax and Use Cases
Related and correlated items in SCA
In SuiteCommerce Advanced (SCA), related items and correlated items are two powerful tools for enhancing the shopping experience by suggesting additional products to customers. Here’s a detailed explanation of both concepts and how they can be implemented effectively: 1. Related Items Related items are manually associated with a product. These are typically complementary products that… Continue reading Related and correlated items in SCA
Best practices for displaying more than four items in single row on the PLP pages
In SCA websites, typically four items are displayed per row on PLP pages. To include more items as per the requirements from clients, we need to resize the item names, images, and the entire item cells. To reduce or restrict the display of lengthy item name we use the ellipsis feature in CSS. Below provided… Continue reading Best practices for displaying more than four items in single row on the PLP pages
How to set default country selection option on the checkout page
Go to Website Setup record. Under ‘Shopping’ tab there is a dropdown field named ‘Default Shipping Country for Checkout’ in the ‘Shipping Page’ section. Select the country that you want to set as default shipping country option during checkout process. If no country has chosen (left the dropdown as empty), then default selected shipping country… Continue reading How to set default country selection option on the checkout page
Bx slider in SuiteCommerce Advanced
In SuiteCommerce Advanced website, sliders are implemented by using jQuery bx slider. Configuration Options: BxSlider provides a wide range of options to customize the slider’s behavior. For example: mode: Defines the transition type (horizontal, vertical, or fade). auto: Enables automatic sliding. pause: Sets the duration between slides. controls: Adds navigation controls like next/previous buttons. pager:… Continue reading Bx slider in SuiteCommerce Advanced
Enable Token Based Authentication
Older version of SCA have email authentication which will be deprecated. You will not be able to proceed with email authentication for fetching, creating and deploying extension or theme or source code. For that you need to enable token-based authentication (TBA) to your older version of SCA. Latest version of SCA have TBA as inbuilt.… Continue reading Enable Token Based Authentication