i'm 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 ...
Thanks for reading. Have a good day :)

  • 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
  • What is the work of your custom module? – Sukumar Gorai Sep 13 '18 at 15:02

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.