Files
medusa-store/www/apps/resources/app/commerce-modules/customer/customer-accounts/page.mdx
Shahed Nasser 95eef899f7 docs: add notes + missing links for user guide (#11621)
* docs: add notes + missing links for user guide

* fix build errors

* fixes
2025-02-26 15:28:18 +02:00

30 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
export const metadata = {
title: `Customer Accounts`,
}
# {metadata.title}
In this document, youll learn how registered and unregistered accounts are distinguished in the Medusa application.
<Note title="Looking for no-code docs?">
Refer to this [Medusa Admin User Guide](!user-guide!/customers) to learn how to manage customers using the dashboard.
</Note>
## `has_account` Property
The [Customer data model](/references/customer/models/Customer) has a `has_account` property, which is a boolean that indicates whether a customer is registered.
When a guest customer places an order, a new `Customer` record is created with `has_account` set to `false`.
When this or another guest customer registers an account with the same email, a new `Customer` record is created with `has_account` set to `true`.
---
## Email Uniqueness
The above behavior means that two `Customer` records may exist with the same email. However, the main difference is the `has_account` property's value.
So, there can only be one guest customer (having `has_account=false`) and one registered customer (having `has_account=true`) with the same email.