restrict add to cart option from favorites section for out of stock items

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

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

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 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

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