-
Notifications
You must be signed in to change notification settings - Fork 9.4k
[Backport]-issue-195196 Customer related values are NULL for guests converted to customers after checkout. #21325
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
[Backport]-issue-195196 Customer related values are NULL for guests converted to customers after checkout. #21325
Conversation
Hi @Nazar65. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
HI @rogyar any updates ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi @Nazar65 thanks for backport, I have a question regarding the implementation, can you please check my code review note
if ($quote->getCustomerFirstname() === null && $quote->getCustomerLastname() === null) { | ||
$quote->setCustomerFirstname($quote->getBillingAddress()->getFirstname()); | ||
$quote->setCustomerLastname($quote->getBillingAddress()->getLastname()); | ||
if ($quote->getBillingAddress()->getMiddlename() === null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this check by design, or did you mean to check $quote->hasCustomerMiddlename
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes in original Pr i was check if $quote->hasCustomerMiddlename
but now i don't know how i did this, i'm will add a propper check
Hi @sivaschenko i've added a valid check for customer middle name, is this check be valid ? or we can add a method as you mentioned |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Nazar65 , no need to add new methods
Hi @sivaschenko, thank you for the review. |
Hi @Nazar65, thank you for your contribution! |
… for guests converted to customers after checkout. #21325
Original PR #19191
Description (*)
Customer name and all customer related values should not be NULL
Fixed Issues (if relevant)
Manual testing scenarios (*)
Contribution checklist (*)