How to resolve this issue while using map reduce script”TypeError: Cannot read property “OVERWRITE” from undefined”

This article will help you overwrite an existing file with the same name in the file cabinet using SuiteScript 2.0. 1. Create and upload a scheduled script: Save the below code as .js file: function execute(scriptContext) { var fileId = ‘9505‘; //file ID var fileObj = file.load({ id: fileId }); var fileType = fileObj.fileType; var fileName… Continue reading How to resolve this issue while using map reduce script”TypeError: Cannot read property “OVERWRITE” from undefined”

How to resolve SuiteScript Error SSS_INVALID_SRCH_OPERATOR

If an nlobjSearchFilter contains an invalid operator, or is not in proper syntax: {1}, an error is thrown: SSS_INVALID_SRCH_OPERATOR  The error may be thrown by any of the following scenarios: The filter name is not officially supported, i.e., the filter is not officially documented in the SuiteScript Records Browser under the record type being searched.… Continue reading How to resolve SuiteScript Error SSS_INVALID_SRCH_OPERATOR

Proposal For Implementing ACH Payment on the Website

Proposal Summary  This proposal covers the implementation of the ACH Payment in the Suite Commerce Website of Elevate Oral Care.  Requirement  The requirement is to setup the ACH (Automated Check Handling) payment method on the website of Elevate oral care.    Deliverables  We can implement the ACH Payment on the website.   We need to setup… Continue reading Proposal For Implementing ACH Payment on the Website

How to troubleshoot the error Module not found while using suitescript 2 file

You may see this error if you are using the require Function. The require Function has no global context. Consequently, relative paths do not work for the require Function unless you import require() as a dependency of define(). If you receive the Module does not exist error, try replacing relative paths with absolute paths. For… Continue reading How to troubleshoot the error Module not found while using suitescript 2 file

How to resolve SuiteScript Error SSS_INVALID_SRCH_OPERATOR

Scenario If an nlobjSearchFilter contains an invalid operator, or is not in proper syntax: {1}, an error is thrown: SSS_INVALID_SRCH_OPERATOR  Solution The error may be thrown by any of the following scenarios: The filter name is not officially supported, i.e., the filter is not officially documented in the SuiteScript Records Browser under the record type… Continue reading How to resolve SuiteScript Error SSS_INVALID_SRCH_OPERATOR

To display the category-based subtotal in the shopping cart

We display the subtotal for products in the salon category on the cart page. Items other than those in the salon category are categorized as Jan/Sen products. cart_summary.tpl {{#if GlossLab}} <td class=”cart-summary-item-count-total custom”> <div>Jan/Sen products : {{Symbol}}{{nonSalonProduct}} </div> <div>Salon products : {{Symbol}}{{salonProduct}} </div> </td> {{/if}} Cart.Summary.View.Site.js var GlossLab; var customersegment = _.find(profile_model.attributes.customfields, function (cust) {… Continue reading To display the category-based subtotal in the shopping cart

How To manage URL components for facets

Make sure the feature is enabled. For more information, see Enable URL Components Alias. Go to Commerce > Marketing > SEO > URL Components for Facets. Click Edit or View on the URL Components for Facets page to access the URL Definition page. Enter a value in the URL Component field. The following fields are displayed on the on the URL Definition page:… Continue reading How To manage URL components for facets

How to Resolve Facet Configuration not taking effect in SuiteCommerce Advanced

To Resolve this issue 1. Ensure that the correct Field ID is being used by the configuration: Navigate to Commerce > Websites > Website List Click Edit on the website record you are using Navigate to Search Index tab > Facet Fields sub-tab Make sure that the Field ID defined for the Facet Fields is the one being used in the Item Field ID in the Configuration record. 2. If URL Components for Facet is being… Continue reading How to Resolve Facet Configuration not taking effect in SuiteCommerce Advanced