Context Learning how and when to “extend” and “wrap” native SuiteCommerce code is a vital skill to learn for developers. This article will explain the difference, and the basics of how to do it within the context of SuiteCommerce development. It should be noted right away that “wrapping” is a form of “extending” code. If… Continue reading Basics of extending and wrapping native SuiteCommerce code
Category: SuiteCommerce
Invalid define call: Activation Error on SCA
Error message”: “Invalid define call, define should only be called once per module. Define calls found at the following line numbers: tmp_ssp_libraries_ext.js 30 ………. Make sure that the manifest does not contain any SuiteScript2 files in the SSP-libraries section before deploying any extensions if you are experiencing an error similar to this one when trying… Continue reading Invalid define call: Activation Error on SCA
Example to make item drag and Drop for Rearrange.
If we want to make any content of our website drag and drop then we can refer the below code. <!DOCTYPE html> <html> <head> <style> .drag-list { list-style: none; padding: 0; } .drag-item { background-color: #CC56FF; padding: 10px; margin-bottom: 5px; cursor: move; } </style> </head> <body> //Supose that below are the item of our website.… Continue reading Example to make item drag and Drop for Rearrange.
JavaScript To Find the most frequent item of an array
If we want to filter the item from the array which is frequently used then we can follow the below Example Here in the below example the array jjarray contain ‘a’ 5 times , so the most frequently item will be a. Sample array: var jjarray=[3, ‘a’, ‘a’, ‘a’, 2, 3, ‘a’, 3, ‘a’, 2,… Continue reading JavaScript To Find the most frequent item of an array
Item is Not showing in Reorder Page
Reorder Functionality is Default in SuiteCommerce Advance and SuiteComerce So we no need to Enable any things for this Functionality For SuiteCommerce MyAccount (SCMA) we need to Enable the check box from Configuration For SCMA website Open Configuration by choosing website and Domain Click on My Account Tab Select Preference sub tab Check the Allow User… Continue reading Item is Not showing in Reorder Page
Error INVALID_LOGIN_ATTEMPT Invalid login attempt
This error occurs when deploying or fetching using a role that requires 2FA. You must specify a role that provides the permissions needed to deploy to NetSuite. By default, the Administrator and SCDeployer roles provide these permissions.
To resolve the issue of going to production domain while logging in local environment.
When we start in the local version of the Shopping domain using the shopping-local.ssp URL. On login, you are redirected to the production version of the Checkout domain at the my-account.ssp URL. To return to the local version of that domain you must manually edit the URL. Change: https://checkout.netsuite.com/c.xxxxxxx/sca-dev-denali/my_account.ssp?n=3 To: https://checkout.netsuite.com/c.xxxxxxx/sca-dev-denali/my_account-local.ssp?n=3 Also, in some browsers, when you manually update… Continue reading To resolve the issue of going to production domain while logging in local environment.
Display the first three badges over the items in the website
Checked the already showing badges in the website , If we wan to add badges for the items we need to enable the checkbox in the item record and need to select the badges list to show the badges for product , here i have added four badges for this item (Toilet Tissue 9″ Jumbo… Continue reading Display the first three badges over the items in the website
How to show category for a particular customer based on customer segments
the requirement of the task is for now created the New category for the Gloss Lab francise customer , The category called ( Salon Products) ,and as per now the category which is belongs to glosslab customer that category only it will show for that customer , so remaining item should be jan/sen products Testing… Continue reading How to show category for a particular customer based on customer segments
Set a customer’s cookie preferences
To set cookie preferences, you provide an object containing key/value pairs. The key represents the cookie preference name, which must be an alphanumeric string. The corresponding value can be either true or false. True indicates the customer’s agreement to the use of a specific type of cookie, while false indicates disagreement. Any valid text string… Continue reading Set a customer’s cookie preferences