How To Set the value of a custom transaction body field on the order

To use this method, pass in an object that contains the field ID, its type, and the value you want to set.var cart = container.getComponent(‘Cart’);var data = {fieldId: “custbody_customerref”,type: “string”,value: “C123456”} cart.setTransactionBodyField(data).then(function() {console.log(data.fieldId + ‘ was set to ‘ + data.value);}).fail(function(error) {console.log(‘setTransactionBodyField failed.’);});

Setting shippingmethod

If the requirement is to set the shipping method,then in SCA an frontend API is available. Sets shipping method for order. Parameters shipmethod [required] {Object with values for fields} shipmethod [required] shipcarrier [required]Note Valid values that can be set for shipcarrier are ups or noups. Returns No value returned. Supported Domains Checkout Example: var field = ModelsInit.order.setShippingMethod({“shipmethod”: “1788”});

Different Types of Branding Strategies

A well-received product by a target audience can transform a company. As consumers become savvier, businesses must become more strategic in their branding efforts to ensure that their products and services are in high demand. There is no such thing as a one-size-fits-all branding strategy. Your marketing team should brand your products and services in… Continue reading Different Types of Branding Strategies

PROPOSAL FOR INVOICE UNCOLLECTED

Proposal summary JCurve Solutions would like to create a new report to retrieve data for data from Invoices, Credit Note documents, Debit Note documents. The report can recall backdate and need to show the amount based on as at date selected. And print reports in Excel format. Requirement New report ‘Invoice Uncollected’ to retrieve data… Continue reading PROPOSAL FOR INVOICE UNCOLLECTED

Custom page for display sales order based on the status

Create a custom form that will display sales orders which need to be fulfilled or billed. The sublist columns contain, Internal IDs Document Name Date Status Subsidiary Line Number Tax Type Total Committed Quantity The page should contain the following filter, Subsidiary The value should be updated dynamically based on the filters.

How to create and call modal popup widget in Magento 2

First, we have a button. Clicking it will display a pop-up. <button id=”modal-btn”>Open Modal</button> Create content for popup <div id=”modal-content”> <div class=”modal-inner-content”> <h2>Modal Title</h2> <p>Modal content…..</p> </div> </div> Use Magento 2 modal widget We now need to require both jQuery and jQuery UI. To do this, within your JS script, add the following code: <script>… Continue reading How to create and call modal popup widget in Magento 2

Published
Categorized as Magento