Skip to content

When customer is set for quote order is still a guest order #38540

Open
@Genaker

Description

@Genaker

if ($this->_customer) {
$this->setCustomerId($this->_customer->getId());
}

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

Area: OrderComponent: QuoteIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: PR in progressReported on 2.4.xIndicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchTriage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions