Creating Popup Message for Scriptable Cart Messaging

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

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.

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 }); }}

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

Published
Categorized as Magento

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