Name pattern=”^[a-zA-Z]+(?:[_ -a-zA-Z0-9 !@#$%^&*|<>.,])*[a-zA-Z 0-9 !@#$%^&*|<>.,]*$” This pattern will satisfy the following conditions. The name accepts symbols (ex: Victoria 2) The name accepts combinations of alphabets and special characters (ex: Test Victoria ||| & Company). The name field does not accept all numerals. The name field does not accept all white spaces. The name field… Continue reading Form validation
Author: Achu T V
Disable future dates in date picker
Using the below code we can disable the future dates in the date picker.
Auto refresh page after Form submission
In order to refresh a page after an HTML form submission, use one of the following Use the below code In HTML form 2.Use location.reload();(Make this call via JavaScript)
Show Internal ID of Fields and Records
Web services and SuiteScript code need to reference internal IDs in order to uniquely identify objects,So it is recommended that you enable this preference whenever you are working with Web services or SuiteScript. To enable this preference Go to Home>Set Preference and Check Show internal IDS check box to enable this preference You can view… Continue reading Show Internal ID of Fields and Records
Suite Commerce Extensibility API Components
Suite Commerce and suite Commerce Advanced components Cart Checkout CMS Environment Layout LoginRegisterPage MyAccountMenu PageType PageTypeBaseView PDP (Product Details Page) PLP (Product List Page) SCCollection SCCollectionView SCFormView SCModel SCView Search UserProfile SuiteCommerce Instore(SCIS) Components Cart SCISLayout
List of the available view IDs for PDP,PLP,Cart and Checkout
Component Main view ID Name Product Details Page (PDP) PDP_FULL_VIEW (default) ProductDetails.Full.View Product Details Page (PDP) PDP_QUICK_VIEW ProductDetails.QuickView.View Product List Page (PLP) PLP_VIEW Facets.Browse.View Cart CART_VIEW (default) Cart.Detailed.View Cart CART_MINI_VIEW Header.MiniCart.View Checkout WIZARD_VIEW Wizard.View
Access to XMLHttpRequest at..[Local server url] from origin ..[Test domain]..has been blocked by CORS policy:Error in console
While navigating to the local version using URL [ Example : “http://<DOMAIN_NAME>/c.<ACCOUNT_ID>/<SSP_APPLICATION>/shopping-local.ssp” ] for viewing the customized Theme/Extension in a browser, You may see an error “Access to XMLHttpRequest at..[Local server URL ] from origin ..[Test domain].. has been blocked by CORS policy” or “Failed to load Resource error” in console. This error is caused… Continue reading Access to XMLHttpRequest at..[Local server url] from origin ..[Test domain]..has been blocked by CORS policy:Error in console
Suite commerce Advanced: Initial Setup / SSP Folder creation
Below steps are useful for creating a custom SSP application( sca-2021.2.0 version is used here)1.Assure all required features and preferences for a Commerce website were enabled correctly.2.Create a new SSP application folder ,go to Commerce > Hosting >SSP Application > New3.Download the _sources file from the corresponding URL root( Example: ” /sca-dev-2021-2-0 “)4.Extract the zip… Continue reading Suite commerce Advanced: Initial Setup / SSP Folder creation
Error “Deployment scriptlet not found, aborting.”
To solve this issue go to distro.js file inside your source directory and find the code “scriptId”: “customscript_ns_sca_deployer_2020_2_0”, “deployId”: “customdeploy_ns_sca_deployer_2020_2_0”, Replace the _2020_2_0 with the version that you are currently using(if you are using 21.2.0 replace the code as follows “scriptId”: “customscript_ns_sca_deployer_2021_2_0”, “deployId”: “customdeploy_ns_sca_deployer_2021_2_0”,
Suite Commerce Advanced Versions And Supported Nodes Modules
Suite Commerce Advanced — Denali : Node version : 0.12.x* Suite Commerce Advanced -Mont Blanc : Node version : 4.4.x and 0.12.x* Suite Commerce Advanced -Vinson : Node version : 4.x.x* LTS Suite Commerce Advanced – Elbrus : Node version : 4.x.x* LTS and Later. Suite Commerce Advanced – Kilimanjaro : Node version : 6.11.x*… Continue reading Suite Commerce Advanced Versions And Supported Nodes Modules