Jump to content

How to get Users email and order id


Recommended Posts

Hi guys please i am trying to create a payment module and some of my requirements are email address and order id of the product.

I have userd "$this->context->customer->email" to get the email and "$this->module->currentOrder" to get the orderid but still yet its not working.

 

Please i attached a module on this topic feel free to download it and check it.

 

Thank you.diamond.zip

Share this post


Link to post
Share on other sites

Hi, the Order id is available only during order confirmation step.

And the email is available with:

$context=Context::getContext();
$email=$context->cookie->email;

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More