Use Scriptable Cart Messaging to offer promotional messages when item is added to cart. This is useful for the user who had implemented Scriptable Cart. It helps them to shows what’s happening in the script. Users can use SuiteScript to display custom messages when the shopping cart contains an item they identify as the trigger item. Once certain item is… Continue reading Creating Popup Message for Scriptable Cart Messaging
Month: January 2023
How to get a custom value in profile model
For example we need to get the customer partner id which is a custom field. To get this field value we need to extend the profile model . Using these function we will get the custom field values in profile model.
Remove duplicate values from an array
This code represents getting unique values from an array. This code returns unique values after removing the duplicate element. “sample array” represents the array variable. This will work only javascript version after ES5. […new Set(sample array)]
No Search Results Match the Criteria on Mass Update when using criteria from saved search.
User would like to perform mass update for Sales Transactions and has used a transaction saved search’s criteria to filter the records to be updated. However, when previewing results, no records are found. When running the saved search, there should be a number of records returned To resolve the problem, Main Line must be set to True. Mass… Continue reading No Search Results Match the Criteria on Mass Update when using criteria from saved search.
How to customize the choose file button in iOS devices
In Ios devices shows the buttons in different UI for choose file input type file by using this method we can customize the choose file buttons.
Function of replace data in email body
function getHtmlBody(Template,htmlbody, replaceData) { try { let html = htmlbody; if (Template === sevenDaysTemplate) { html = html.replace(‘#close’, replaceData.closingdate); html=html.replace(‘#orders’,replaceData.orders) } else if (Template === fourteenDaysTemplate) { html=html.replace(‘#orders’,replaceData.orders); } else if(Template === fifteenDaysTemplate){ html=html.replace(‘#orders’,replaceData.orders); } return html } catch (e) { log.debug({ title: e.name, details: e }); log.error({ title: e.name, details: e }); }}
Severity and Priority in testing
Severity The impact of the bug on the application is known as severity.It can be a blocker, critical, major, and minor for the bug. Blocker: if the severity of a bug is a blocker, which means we cannot proceed to the next module, and unnecessarily test engineer sits ideal. There are two types of blocker bug, which are as follows:… Continue reading Severity and Priority in testing
How to set default shipping address of the customer Magento 2?
Set Default shipping address id of the customer in Magento 2 using Address Repository Interface. You required Customer Id to set shipping address and address id you want to assign it. $address->setIsDefaultShipping(true) set the current address id to default address for the given customer.
How to align two contents in the same horizontal line in DOM pdf on magento2
Solution The advanced CSS are not supported in the DOM pdf creator extension in magento2.So we have to find an alternative method to show the contents in the same horizontal line. So for this, we can use a table structure. The structure should be Through this, we can align contents horizontally on the same line… Continue reading How to align two contents in the same horizontal line in DOM pdf on magento2
Waterfall model
The Waterfall Model was first Process Model to be introduced. It is also referred to as a linear-sequential life cycle model. It is very simple to understand and use. In a waterfall model, each phase must be completed fully before the next phase can begin. This type of software development model is basically used for… Continue reading Waterfall model