To add new column in myaccount page through extension . In array original.column add new column .
Tag: EXTENSION
How to write a code that needs to run based on any change happening in the cart.
When extending the cart view, when any values like quantity or cart add/remove is happening and we need to update any values in the cart according to the change we can use the following code: This function will run every time an update happened in the model
Extension permission
After activation of an extension on execution time the execution log will show error of permission.To solve this we need permission for that particular extension. For that take ssp application > extensions> services> Edit servicess.ss file . On subtab permission Check enabled checkbox. Then select ‘execute as role’ as the role needed.
SC Grid Order
The Grid Order extension lets you set up matrix items to display purchasing options in a table on the Product Details page (PDP). When you activate this extension, you configure items to use Grid Order. These items display purchasing options in a tabular format in place of the standard experience. This view is ideal for… Continue reading SC Grid Order
Points To Be Noted While Passing a Boolean Variable To Backend In An Extension
While working on any SCA extension having both javascript and suite script module, if we are passing a boolean value(true/false) to the suite script module there is a chance for changing the variable type to string. So if you are checking any condition with that variable make sure to check the type of the variable… Continue reading Points To Be Noted While Passing a Boolean Variable To Backend In An Extension
Resolve Could Not Download All the Extension Files Error When Activating Extension
Scenario User may encounter a “Could not download all the extension files” error when trying to activate extension. This happen when some modules failed to be completely fetch and is missing under the workspace folder on your developer environment. Solution Assign SCDeployer role to employee record Open a command line or terminal Access the top-level… Continue reading Resolve Could Not Download All the Extension Files Error When Activating Extension
Code for generating Unique ID Using timestamp
We can generate unique IDs using the following Java script code. We can use this code for requirement which needs a unique value to be generated every time or when a conditions satifies. And there are Random ID generating code are available but here we are using current date and time values to generate unique… Continue reading Code for generating Unique ID Using timestamp
Node.js Requirement for 2023.1.0 Release Of SCA
With the 2023.1.0 release, the developer tools continue to support Node.js version 14.19.0. To use the Theme, Extension, or core SCA 2023.1 developer tools, you must use this Node.js version.
Add search functionality in the order history list page of website
Requirement is to include a search function in the order history list page of website, so that user can search a specific order by PO Number or SO Number. Solution: Create an extension and extend the “OrderHistoryListView”. Adding example below. Javacsript entrypoint file Template file
Some of the key considerations before creating an extension in SCA
1. Provide a proper name and description for the extension. 2. Select all sections (shopping, my account, checkout) if required. Otherwise, select the required option based on the requirement. 3. Select only the required files. If you accidentally select any unwanted files while creating the extension, remove the folder after creating the extension. eg: Here… Continue reading Some of the key considerations before creating an extension in SCA