Use Incognito Mode for Development: During development, open an incognito (private) session in your browser. Insert nlapiLogExecution functions into your code to visualize data flow and facilitate debugging. Remove these logs when done to avoid performance impact. Handling Catastrophic Errors: If your script encounters critical errors, configured nlapiLogExecution calls can trigger emails to you or… Continue reading Debugging Tips: SuiteScript for Scriptable Cart
Month: November 2023
Checkout Error Alerts
Receive immediate notifications in case an order cannot be submitted due to a checkout error. Email alerts will be sent to you, containing a unique ticket number that correlates to the specific error logged in NetSuite. In case you receive multiple alerts, contacting NetSuite Customer Support with these ticket numbers will expedite the resolution process.… Continue reading Checkout Error Alerts
Out of Stock Message
With the 2023.2 release, The Out of Stock error message lists the exact number of items that are not in stock so that the user can go back and edit the order on SuiteCommerce and SuiteCommerce Advanced websites.
Resolving Permission Errors in Scriptable Cart
When working with Scriptable Cart and custom records, resolving permission errors requires careful consideration of both the custom records and the script logic. Follow the guidelines below to address any permission issues you may encounter: Custom Record Setup: Ensure that the “Use Permissions” box is marked for the custom record. Clear the “Include Name Field”… Continue reading Resolving Permission Errors in Scriptable Cart
Pinterest-Token Generation Using Refresh Token
Following function can be used for generating Pinterest token with the help of a refresh token.
Custom List Permission
Permissions are defined differently for custom lists than for custom records. There is no Permissions tab and anyother access control is not available on the list definition page. This also includes errors which shows up on the SSP Navigate to Setup > Users/Roles > Manage Roles Custom Role: Click Edit Click Permissions Click Setup Permission:… Continue reading Custom List Permission
Replace is not a function error
To correct invoice details page issue is only for invoice with status unapproved payment status. The invoicedetailview is extended for an update. There showing an error replace is not a function error ” jQuery.Deferred exception: amount.replace is not a function TypeError: amount.replace is not a function”. amount = amount.replace(/,/g, ”); code was getting error To… Continue reading Replace is not a function error
How can you retrieve a list of all users from WordPress, excluding those with the ‘bbp_blocked’ role, and sort them alphabetically based on their display name?
To retrieve a list of all users from WordPress, excluding those with the ‘bbp_blocked’ role, and sort them alphabetically based on their display name, you can use the following PHP code: write the following code in the function.php Now, the get_all_users the function can be accessed at the following endpoint, http://yoursite.com/wp-json/custom/v1/get-all-users/
Implement an API endpoint for facilitating a password reset email in WordPress
Add this to your theme’s functions.php or create a custom plugin The endpoint defined in the code is:/custom/v1/password-reset/ body of the API: { “email”:”email@gmail.com”}
google recatcha v3 in a check out page
To add google recatcha v3 in a check out pagewe need to create a extension and suite script and suite let file NOTE: SITE KEY and SECRET KEY will differ with domain java script: suite script files: tpl file suite let file configuration file