How rewrite grand total (magento 2)

by Aaron   Last Updated September 11, 2019 16:09 PM - source

I created an extra field in checkout. Also created input with a button. When you click on the button, the field in checkout is overwritten with the value that was in input. Faced such a problem: How do I get this value from input when I click on the button to write to the value of the field that I created. For example: Enter 3.00 into the input, it redirects us to: app/code/vendor/Module/view/frontend/web/js/view/extra-fee-checkout-form.js How do I write this value here? order.totals().total_segments he has this object example:


console: "{code: extrafee, title: extrafee, value: 0}"

but i think write like that:

order.totals().total_segments[5].value = '123123'

<- bad idea

Related Questions

Magento Checkout per product

Updated July 25, 2018 11:09 AM

Placing Guest Order Programatically

Updated March 30, 2017 16:09 PM