Fetching Sales Order Data with Pagination using SuiteScript in NetSuite

This NetSuite SuiteScript is being used to fetch sales order data from an external site that has pagination enabled. Let’s walk through the code to understand how it works: The code starts by initializing two variables, paged and previousResponse. The paged variable represents the current page of results being fetched, and the previousResponse variable is… Continue reading Fetching Sales Order Data with Pagination using SuiteScript in NetSuite

Guide to Hiding Fields, Buttons, and Columns using jQuery

Sure, I can provide a general guide on how to hide fields, buttons, and columns in a document using jQuery. Here is an example document and instructions: Guide to Hiding Fields, Buttons, and Columns using jQuery Introduction jQuery is a popular JavaScript library that makes it easy to manipulate HTML elements on a web page.… Continue reading Guide to Hiding Fields, Buttons, and Columns using jQuery

Executing Code in Saved Searches Using Formula (HTML) Fields

Formula (Text) fields that contain HTML code will only display results as plain text to improve the security of saved searches. we will receive a notification about this change before it takes effect in your account. After 2023.2, we need to use a Formula (HTML) field to evaluate HTML code within a saved search. Formula… Continue reading Executing Code in Saved Searches Using Formula (HTML) Fields

Resolve Error: “An unexpected SuiteScript error has occurred.” while using Send Email Action of Workflows

Scenario: If the error “An unexpected SuiteScript error has occurred.” is encountered when saving a record that has a workflow running on it, check the workflow for any Send Email action.  When adding a Send Email action on a workflow, there should always be a condition to check for both sender’s and recipient’s email address availability.… Continue reading Resolve Error: “An unexpected SuiteScript error has occurred.” while using Send Email Action of Workflows

What all are types of items that we can import matrix options:

You can import matrix options for the following types of items: Assembly/Bill of Materials Lot Numbered Assembly Serialized Assembly Inventory Item Lot Numbered Inventory Item Serialized Inventory Item Non-Inventory Item for Sale Non-Inventory Item for Resale Non-Inventory Item for Purchase Service Item for Sale Service Item for Resale Service Item for Purchase Other Charge Item… Continue reading What all are types of items that we can import matrix options:

Magento default pop-up

<div id=”add-to-cart-popup” style=”display: none;”> <div class=”add-to-cart arrow-up”></div> <div class=”content”>Item added to cart</div> </div> <script> require([‘jquery’], function($) { $(document).on(‘ajax:addToCart’, function(event, eventData) { $(‘#add-to-cart-popup’).fadeIn(); setTimeout(function() { $(‘#add-to-cart-popup’).fadeOut(); }, 1400); }); }); </script> The script code uses jQuery to listen for the “ajax:addToCart” event, which is triggered when an item is successfully added to the cart using AJAX.… Continue reading Magento default pop-up

Published
Categorized as Magento

Show a pop-up window for the user to enter the text message

When the user needs to type any test messages in a pop-up window, use the below-added code section. let popUpWindow = ”; while (!popUpWindow) { popUpWindow = prompt(“Write the message to display in the pop-up window”); }; let changingReason = popUpWindow; Here the message entered by the user will be displayed in the ‘changingReason’ variable.