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
Category: SuiteCommerce
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
Cookie preferences of a customer
To access the cookie preferences of a customer from the customer record in NetSuite, the SuiteCommerce Analytics Data feature must be enabled. This method retrieves a list of key/value pairs representing the cookie names and their corresponding boolean values (true or false), along with the last date the customer updated the preferences. It’s important to… Continue reading Cookie preferences of a customer
Default validation message is not showing for newsletter
For showing In normally if we didn’t enter anything in email field it will shows an error message but if message is not getting we need to customize and created a new extension for that and check Configuration : { “type”: “object”, “subtab”: { “id”: “Newsletter”, “group”: “extensions”, “title”: “Newsletter” }, “properties”: { “newsletter.FirstName”: {… Continue reading Default validation message is not showing for newsletter
Facet Troubleshooting
Facets can often show errors if not configured correctly. Below are some basic checks to make sure that your facets are correctly set up if you are seeing errors on the site. The most common error is to see the header of the facet display the Field ID instead of the correct header (or no… Continue reading Facet Troubleshooting