This method can be used to show a unique name for the matrix child items. Due to the lack of a webstore tab in NetSuite, the child item will presently display the parent’s name. Based on the matrix choice they have on their NetSuite record, this function generates names.
Author: Ittymathew Paul
SMT on ERP and Web
Changes to the ERP will have an impact on the SMT in Web Pages, The General flow is as shown Below CMS PAGE /app/site/cms/services/cmspages.nl Type Field -Specifies if this record is for a landing page or an enhanced page. Landing page Enhanced page CMS PAGE TYPE Field – This specifies the type of page, such… Continue reading SMT on ERP and Web
Using Cached Model
To load a page more faster than before like a landing page which has more items we can use ‘Backbone.CachedModel’ on the model file adding a sample along with this
Modify an Error on Model File
This extension changes a backend error that appears when a user attempts to delete an address that is already in use. The error message in this scenario reads “Unexpected Failure,” the error returned iserrorCode : “ERR_WS_REMOVE_CUSTOMER_ADDRESS” errorMessage : “Unexpected failure” errorStatusCode : “400” but we need to change it to a different message. will provide… Continue reading Modify an Error on Model File
Regex For PO BOX Address
If a PO Box is present at the address, the code below returns true.
Customization on Returning a Order
Code responsible for setting the Reason text to the item’s Description field. It came from the core SCA backend suitescript ReturnAuthorization.Model.js – we can comment out this line instead: sca/Advanced/ReturnAuthorization/SuiteScript/ReturnAuthorization.Model.js#L252-L257 Modify the UI to hide the Reasons selection for each line,instead display only at the top of the list. (screenshot 2) When selecting a Reason, it should also… Continue reading Customization on Returning a Order
Configure the Return Condition
Normally RMA can be done for items that are of type InvtPart, NonInvtPart, Kit. We cant do a return for assembly items or other items to make it possible we can do by extending the itemKeyMappiing file
Clearing Estimate Shipping Cost
For Clearing the estimate shipping cost from the cart page , we are using a method as shown below. Added a sample code along with it View File Entry Point Service Controller
Show a Confirmation Modal
Here the callback function will work when we submit the modal and the parameters that are being passed is being mentioned on callBackParameters, Modal will have the corresponding title and body mention the view.
Renaming Extension On Manifest
We can gulp extension:deploy –advanced for renaming an extension, It deploys an update of the extension, but resets the prompts regarding the Vendor Name, Extension Name, Version, Description, Application, etc. This command also rewrites this information in the extension manifest.json file. Suite Answer-id : 71021