New answers tagged

0 votes

Unable to retrieve the qty updated product value in the cart using Observer

Try using events checkout_cart_update_item_complete processItemQty$observer->getItem()) For updates from the mini cart, you may also need checkout_cart_update_items_after $observer->getCart(...
user avatar
0 votes

change jsLayout html template

Short answer is no way JS Layout in Magento is component based structure where you need to operate with component JS and HTML template file (knockout) for rendering. I think you may find useful ...
user avatar
0 votes

Magento checkout payment page add custom field

I think the following article can help you to understand general logic how to How to Add Custom Field in Checkout Page Below Payment Method List in Magento 2
user avatar
0 votes

How to edit for existing shipping addresses in checkout page magento2?

Please Upgrade to Magento version 2.4.4. They Have Solved that issue. => could u please let me know how can i edit an exist address on checkout page with M2.4.4?
user avatar
0 votes

Include shipping on quote item not quote

You need to create mixin in any applicable place and reload summary block You can add mixin to Magento_Checkout/js/model/shipping-save-processor You can update summary with following logic define([ ...
user avatar
0 votes

Magento 2 Checkout that would better fit the order flow for a flower shop?

I helped one of my friend and my client. It is not 100% solution but we achieved big improve. Check it out. Https://cranfordflorist.com I customized this website from scratch. Send me a message if you ...
user avatar
  • 1
1 vote

Magento 2: How to make PO number optional using custom module?

You can use requirejs-config.js for overwrite or extend native logic Overwrite: let config = { map: { "*": { "Magento_OfflinePayments/payment/purchaseorder-form....
user avatar
0 votes

How to Add Cart Price Rule Condition in Coupon Code Programmatically in Magento 2.4.0?

You can select Customer Group - ( General or any other), if you are providing any customer group to them. General is given by default to Registered Customers. You can assign any group to your customer ...
user avatar
0 votes

Send Custom Data to quote table

In the js file you need to send data via ajax function transfer() { const Http = new XMLHttpRequest(); const str = 'day='+ document.getElementById('dayData').value + '&...
user avatar
0 votes

Reset billing address to default address

The easiest solution seems to be to get and set the values individually: // Load customers default address data $customer = $this->customerFactory->create()->load($order->getCustomerId()); ...
user avatar
0 votes

Magento 2 - checkout_submit_all_after event is not working

Can you please try below code. please create events.xml in etc folder. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:...
user avatar
  • 835
1 vote
Accepted

Send Custom Data to quote table

You have to do the following things: You have to add data to the additional data to the payment data. Create a function as following: getData: function () { return { 'method': '...
user avatar
2 votes
Accepted

How to get Data from system.xml file

You should pass system.xml data to customer by CompositeConfigProvider. define CompositeConfigProvider in your di.xml file app/code/{{Vendorname}}/{Modulename}/etc/frontend/di.xml <?xml version=&...
user avatar
  • 1,159

Top 50 recent answers are included