Skip to content

Magento 2 get customer email in guest checkout

I’ve tried all posts on this subject but couldn’t make it work.

I need to retrieve customer email during checkout, just after he fills the address form, on the select payment method page.

This info is not stored in the session (it is only if the customer is logged in).

I’ve checked the table “quote_address” in the database as well. The column “email” is empty while “firstname”, “lastname”, “street” have data.

I’ve tried javascript with no success either.

Where is that email stored?

Can someone help me with this? If so, please provide a detailed answer.

Thanks in advance.