I am stucking at understand how checkout save the data.

enter image description here I saw they use submit: setShippingInformation, so i follow this function and i got here:


And here is what i saw in default.js

if (!quote.billingAddress()) {

And i console.log(quote.shippingAddress()); and saw it render all the data from the shippingAddress form.
That is it. I dont know where to go next, the quote.shippingAddress() in quote.js doesn't show me anything at all.


Here is it (i guess):

shippingAddress = ko.observable(null)

Please give me advice on how to make the next move. I dont know what to do right now.

  • Magento2 store all information in local storage. When you place order then only data will be saved to database. – Sukumar Gorai Sep 13 '18 at 14:49
  • So what if i have custom a module that override the checkout page, and i want to save the data to the database? – fudu Sep 13 '18 at 15:00
  • What is your custom page do? – Sukumar Gorai Sep 13 '18 at 15:01
  • And ofcouse in that custom checkout module, i've create a few more input :) – fudu Sep 13 '18 at 15:01
  • 1
    @magefms yes i did, i've follow this module and its worked. github.com/saxsax1995/magento2-module-delivery-date – fudu Feb 13 at 4:02

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.