-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"x_forwarded_for" value is always empty in Order object. #7227
Comments
@ytorbyk thank you for your report. |
@veloraven I apologize for the issue format. It's already updated. |
I guess #8203 is a duplicate of this. For some reason I didn't come up with this issue when I did a search initially. I diagnosed basically the same reasons for the problem and possible fixes. However there's also some incompatibilities with IPv6 addresses that should be addressed. |
Did anything ever come of this bug report? |
@ytorbyk, thank you for your report. |
magento/magento2#7227 x_forwarded_for should be copied from quote, but quote does not have the field on database
For those of you who want to see their customer's actual IP addresses, as opposed to 127.0.0.1, and don't want to wait for Magento to fix this rather critical piece to help identify fraudulent orders, there is a simple solution: https://dev98.de/2017/01/02/how-to-add-alternative-http-headers-to-magento-2/ |
Hi @cmuench. Thank you for working on this issue.
|
Hi @ytorbyk. Thank you for your report.
The fix will be available with the upcoming 2.3.2 release. |
…mpty in Order object #21787
Developer branch used
Preconditions
Steps to reproduce
Expected result
Actual result
Thoughts
I've tried to find out why it happens.
I found that this field is never set directly to order. It could be copied from quote during conversion quote to order. However quote does't have such field in DB. The field is set to quote each time the quote is got from checkout session.
https://github.com/magento/magento2/blob/develop/app/code/Magento/Checkout/Model/Session.php#L280
But on order placement process quote is got not from session but from DB.
https://github.com/magento/magento2/blob/develop/app/code/Magento/Quote/Model/QuoteManagement.php#L325
The text was updated successfully, but these errors were encountered: