In the checkout process, when a user adds a new address, the system needs to automatically set that address as the default address (either shipping or billing) based on the context. This ensures that the newly added address is used for further transactions unless the user selects another one. We will extend the existing OrderWizardModuleAddressShipping (or OrderWizardModuleAddress) class to capture… Continue reading Setting a New Address as Default in Checkout
Author: Radhika R
Basic Joins in Sequelize
Sequelize makes it easy to work with related database tables. Often, a table is connected to another, and fetching related data requires a join. This article explains how to perform basic joins in Sequelize using simple associations. 1. Setting up models Consider two tables: User and Invoice. A user can have many invoices, and each… Continue reading Basic Joins in Sequelize
Formatting Dates in Sequelize
When working with Sequelize (the Node.js ORM), handling date/time fields in a readable or custom format is a common requirement. By default, Sequelize returns dates in ISO formats. However, many applications require alternative formats such as DD-MM-YYYY HH:mm:ss, localized date strings, or more human-readable representations. How Sequelize Handles Dates Out of the Box Sequelize offers… Continue reading Formatting Dates in Sequelize
GraphQL Mutations: Basics and Usage
GraphQL mutations allow clients to modify server-side data by creating, updating, or deleting records. Unlike queries, which only read data, mutations enable write operations while still allowing you to specify what data you want returned. What Are Mutations • Mutations are operations that change data (CRUD: Create, Read, Update, Delete). • Use the mutation keyword… Continue reading GraphQL Mutations: Basics and Usage
Correcting Website Name in Google Search Using JSON-LD in SuiteCommerce Microsites
The client operates multiple microsites under different domains. However, in Google Search results, the website name for some existing indexed microsites is incorrect, outdated, or inconsistent. This article outlines the issue, Google’s rendering behavior, and the implemented solution using JSON-LD structured data to ensure each microsite has accurate SEO metadata aligned with its domain and… Continue reading Correcting Website Name in Google Search Using JSON-LD in SuiteCommerce Microsites
Address Validation Issues in Guest Checkout and Fixes
First Name and Last Name Not Saving or Reflecting in Address List (Billing Modal) When adding a billing address via the modal view, users enter First Name and Last Name. These fields are split from fullname, but the backend (and SCA profile model) expects fullname or addressee. After clicking “Save”: The modal remains open or… Continue reading Address Validation Issues in Guest Checkout and Fixes
Resolving ‘Load More’ Issue on PLP Page When Using a Custom Favorites Extension
Resolving ‘Load More’ Issue on PLP Page When Using a Custom Favorites Extension We introduced a custom Favorites extension that allows users to mark items on the PLP as favorites. However, the ‘Load More’ button on the Product Listing Page (PLP) stopped functioning as expected. SCA uses the FacetsItemsCollectionView for Infinite Scroll behavior. It dynamically… Continue reading Resolving ‘Load More’ Issue on PLP Page When Using a Custom Favorites Extension
Fields in GraphQL
Fields in GraphQL are the fundamental components that allow clients to specify the data they need from a server. They represent individual pieces of data that can be requested for an object. In GraphQL , fields are the fundamental units of data that can be requested for an object. They represent specific attributes or properties of… Continue reading Fields in GraphQL
Schema in GraphQL
What is GraphQL Schema A GraphQL Schema serves as a blueprint for the API that defines what data can be queried from the server, and what are the different types of that data. They define a contract of API between a server and a client. A GraphQL Schema is divided into basic components like below:… Continue reading Schema in GraphQL
Scalar Types in GraphQL
In GraphQL, scalar types are used to represent simple, indivisible values. They form the foundation of any GraphQL schema and are essential in defining the structure of data responses. When a GraphQL query is executed, the resulting data is returned in a tree-like structure, where scalar types appear as the leaf nodes—values that do not… Continue reading Scalar Types in GraphQL