Restrict the items based on subsidiary for all the global searches including plp page without getting issue in pagination and total items.

using this Methode we can restrict the items for the Seach using Api based on subsider in the profile model we can get the API using that Api we can restrict the items on the search and PLP if we are using the Custome field then we also we need to add that fields in… Continue reading Restrict the items based on subsidiary for all the global searches including plp page without getting issue in pagination and total items.

Postman For API Testing

Postman is a widely used tool for testing APIs, allowing developers to easily send requests and receive responses from APIs. It provides a user-friendly interface for making HTTP requests, which simplifies the process of testing APIs and reduces the time needed to fix errors. Postman supports a variety of HTTP methods, including GET, POST, PUT,… Continue reading Postman For API Testing

Converting credentials to base 64 formats for the API call (Access token retrieval)

The function converts the string combining the username and password to base 64 format and apply in the API call for generating the access token. Sample API request code snippet let accessTokenresponse = https.post({ url: AUTH_URL, headers: { ‘Content-Type’: ‘application/x-www-form-urlencoded’, ‘Authorization’: ‘Basic ‘ + getBasicAuthorisation(credentialFetch), }, body: { ‘grant_type’: ‘client_credentials’, } }); /** * @description… Continue reading Converting credentials to base 64 formats for the API call (Access token retrieval)

Dispatch Track Integration

The client needs to send sales order line-level details to Dispatch Tracker, the lines will be scheduled at different times. The lines scheduled at a time need to send to the dispatch tracker and create as single order in the Dispatch tracker. Scheduled Script To Send Sales Order Line Level Details To Dispatch Tracker. /**… Continue reading Dispatch Track Integration