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
Category: Ecommerce-Web- App-Development
All articles related to Website development
NGram, Edge NGram, and Partial Gram in Elasticsearch
NGram, Edge NGram, and Partial Gram in Elasticsearch When implementing autocomplete or partial search features in Elasticsearch, you often use tokenizers like NGram or Edge NGram. These tokenizers help Elasticsearch break down words into smaller components (“grams”) to make partial or fuzzy matching possible. 📘 NGram What it does: Breaks a word into all possible… Continue reading NGram, Edge NGram, and Partial Gram in Elasticsearch
Why Use Firebase Server Time?
“use client”; import { useEffect, useState } from ‘react’; import { initializeApp } from ‘firebase/app’; import { getFirestore, doc, setDoc, getDoc, serverTimestamp } from ‘firebase/firestore’; const firebaseConfig = { apiKey: process.env.NEXT_PUBLIC_FIREBASE_API_KEY, authDomain: process.env.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN, projectId: process.env.NEXT_PUBLIC_FIREBASE_PROJECT_ID, storageBucket: process.env.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET, messagingSenderId: process.env.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID, appId: process.env.NEXT_PUBLIC_FIREBASE_APP_ID, }; const app = initializeApp(firebaseConfig); const db = getFirestore(app); export default function ServerTime() {… Continue reading Why Use Firebase Server Time?
Adding a Custom Font to a SuiteCommerce Custom Theme
Step-by-Step Guide: Adding a Custom Font in VSCode Follow these steps to add a custom font to your SuiteCommerce custom theme using VSCode. Step 1: Set Up Your VSCode Workspace Open Your Theme Project in VSCode: Launch VSCode and open your SuiteCommerce theme folder (e.g., ~/SuiteCommerce/Workspace/MyCustomTheme). Ensure the folder contains the standard SuiteCommerce structure (Modules,… Continue reading Adding a Custom Font to a SuiteCommerce Custom Theme
SuiteCommerce Advanced Feature Compatibility Matrix Overview
Introduction The SuiteCommerce Advanced (SCA) Feature Compatibility Matrix helps developers and businesses identify which eCommerce features are supported in specific SCA versions, aiding decisions on upgrades and customizations since SCA requires manual updates. Purpose The matrix answers: “Does my SCA version support this feature, or must I upgrade?” It simplifies planning by detailing feature availability… Continue reading SuiteCommerce Advanced Feature Compatibility Matrix Overview
Password secure storage in Dbeaver
DBeaver has three password provider options: Master password (recommended) – The most secure option for protecting sensitive data. Automation (console) – Allows automated tasks to run without password prompts. Integrated security – Uses your operating system’s security system to store passwords securely. Changing the password provider¶ Go to Window -> Preferences -> General -> Security. Select your preferred provider.… Continue reading Password secure storage in Dbeaver
Blocked by ‘ Invalid webapp id :”configurationManifest.json” ‘ – Here’s the Fix
Have you ever come across such a blocker while trying to access the Configuration page in SuiteCommerce? If yes, you’re not alone. This error-“Invalid webapp id : ‘configurationManifest.json’” – typically occurs when NetSuite fails to resolve the correct domain mapping for your SuiteCommerce site. But Don’t worry, the solution may be simpler than expected. One… Continue reading Blocked by ‘ Invalid webapp id :”configurationManifest.json” ‘ – Here’s the Fix
Issue in recognizing Node.js installed on the local system
While working in the local setup required for SuiteCommerce Advanced, there were four prerequisites to be met for setting up the environment required for running the SCA website: Node package manager(npm), Node version manager(nvm), gulp, Node JS and gulp. However, if Node.js is installed standalone , if the command ‘node -v’ is run in the… Continue reading Issue in recognizing Node.js installed on the local system
Why was my Magento 2 website serving stale content and not syncing static files or product data correctly?
This issue was caused by a misconfiguration in the Varnish cache integration settings in env.php. Specifically, the ‘http_cache_hosts’ section had incorrect port numbers and host values, preventing Magento from properly purging cached content after updates. The http_cache_hosts array in env.php tells Magento which Varnish servers to send purge requests to when content is updated. If… Continue reading Why was my Magento 2 website serving stale content and not syncing static files or product data correctly?
Misdirected Request The client needs a new connection for this request as the requested host name does not match the Server Name Indication (SNI) in use for this connection.
Cause In recent Apache version, Apache team has released fixes for CVEs that affected Apache + nginx functionality: new changes do not allow Apache process requests from nginx without the server name (by default, nginx does not pass the server name through SNI when establishing a connection with a proxied HTTPS server). Plesk team is… Continue reading Misdirected Request The client needs a new connection for this request as the requested host name does not match the Server Name Indication (SNI) in use for this connection.