Open
Description
magento2/app/code/Magento/Quote/Model/Quote.php
Lines 859 to 861 in a98a64a
if ($this->_customer) {
$this->setCustomerId($this->_customer->getId());
}
You need to change it to
if ($this->_customer) {
$this->setCustomerId($this->_customer->getId());
$this->setCustomerIsGuest(0);
}
or incapsulate this logic into setCustomerId() method
Additional Information:
This issue is caused when checking out from a guest cart programmatically, when you assign a customer to the cart before submitting it to place the order, the quote remains as guest even though a customer has been assigned.
Metadata
Metadata
Assignees
Labels
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmedA defect with this priority could have functionality issues which are not to expectations.Indicates original Magento version for the Issue report.The issue has been reproduced on latest 2.4-develop branchIssue related to Developer Experience and needs help with Triage to Confirm or Reject it