To Restrict add-to cart function for out of stock item first we need to get the data from this and send that to the temple file and for the item and add the add-to function if the item is true then update item or show the message as out of stock. Code: // @module JJ.Favourites.Favourites… Continue reading restrict add to cart option from favorites section for out of stock items
Author: Prashanth G S
how to inherit outof stock message from parent item to child item
to to that first, we need to find out whether in Netsuite for parent item is message and that message is not added to child item in that we can extended the view which we want display and we can add code. _.extend(ProductLineStockView.prototype, { getContext:… Continue reading how to inherit outof stock message from parent item to child item
How to restrict Return Process Based on the customer segment
To Restrict a return process we are checking the customer segment and adding the condition for the return button on the website and if the condition is satisfied then the button will be hide. code: _.extend(OrderHistorySummaryView.prototype, { getContext: _.wrap(OrderHistorySummaryView.prototype.getContext, function (fn) { … Continue reading How to restrict Return Process Based on the customer segment
Favorite option to Quickview
To add a favorites section in the quick view we need to extend the quick view and add the code to perform the functionality we are using java script and suite script both to solve the issue. java script file: _.extend(ProductDetailsQuickViewView.prototype, { template: jj_product_details_quickview_tpl, … Continue reading Favorite option to Quickview
custome date picker For IOS devices and solve the UI issue that will visible only in the Outlook App
Custome Date Picker For IOS: HTML:<div class=”wrapper”> <label for=”datepicker”>Pick a Date <input type=”text” id=”datepicker” autocomplete=”off”> </label> </div> CSS: * { box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; } body { font-family: ‘Roboto’, sans-serif; color: #546E7A; } .wrapper { max-width: 18rem; padding: 0 0.5rem; margin-left: auto; margin-right: auto; padding-top: 4rem; } label { font-size: 0.75rem; font-weight: 400;… Continue reading custome date picker For IOS devices and solve the UI issue that will visible only in the Outlook App
how to get the item catagires details using the api
It’s possible that we can get the item details through the API using this method. With this approach, we can fetch all item details and manually specify the commerce category ID in the API link. categoryresponse: function () { try { var APIresponse =… Continue reading how to get the item catagires details using the api
How to get the values in the reduce function using the map reduce script
define([‘N/search’, ‘N/email’, ‘N/render’, ‘N/https’, ‘N/url’, ‘N/format’, ‘N/record’], (search, email, render, https, url, format, record) => { /** * Function to check whether the field has an empty value or not. * @param {parameter} parameter – fieldValue *… Continue reading How to get the values in the reduce function using the map reduce script
How to send a Email with a encryped link to user using suite script 2
we need to send the email using the send .email() in suite script2.0 define([‘N/email’], function (email) { “use strict”; function service(context) { log.error(‘context’, context) var senderId = 57271; var salesorderUrl = context.request.parameters.salesorderUrl; var salesorder =… Continue reading How to send a Email with a encryped link to user using suite script 2
Create a saved search to get the sales rep for a perticular customer in the netsuite
while creating a saved search we need to select transaction type and there we need to add the internal id of the customer and in the criteria field and result tab we need to add the salesrep related date
how add update quantity in minicart and removing the item in minicart feature
To add the quantity and update that we need to create events and add the data action on the tpl file and extend the view and add code in the events so it will work . code: _.extend(HeaderMiniCartItemCellView.prototype, { template:jj_minicartcustomization_minicartcustomizationcartcell_tpl, … Continue reading how add update quantity in minicart and removing the item in minicart feature