Skip to content

Commit 500b095

Browse files
committed
[IMP] website/ecommerce: update customer accounts page
task-4459675 closes #15086 X-original-commit: 58b4606 Signed-off-by: Xavier Platteau (xpl) <[email protected]> Signed-off-by: Larissa Manderfeld (lman) <[email protected]>
1 parent 384f114 commit 500b095

File tree

5 files changed

+121
-72
lines changed

5 files changed

+121
-72
lines changed

content/applications/finance/fiscal_localizations/peru.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ Configuration
923923
After configuring the Peruvian :ref:`electronic invoicing <peru-accounting-settings>` flow, complete
924924
the following configurations for the **eCommerce** flow:
925925

926-
- :ref:`Client account registration <ecommerce/checkout/policy>`;
926+
- :ref:`Client account registration <ecommerce/customer_accounts/checkout-access>`;
927927
- :ref:`Automatic invoice <handling/legal>`;
928928
- :doc:`../../websites/ecommerce/products`: Set the :guilabel:`Invoicing Policy` to
929929
:guilabel:`Ordered quantities` and define the desired :guilabel:`Customer taxes`.

content/applications/websites/ecommerce/checkout.rst

Lines changed: 5 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -122,53 +122,6 @@ Portal` feature.
122122
.. image:: checkout/order-again-button.png
123123
:alt: Re-order button
124124

125-
.. _ecommerce/checkout/policy:
126-
127-
Checkout policy
128-
===============
129-
130-
To allow customers to checkout as guests or force them to sign in/create an account, go to
131-
:menuselection:`Website --> Configuration --> Settings`, scroll down to the :guilabel:`Shop -
132-
Checkout Process` section, and configure the :guilabel:`Sign in/up at checkout` setting. The
133-
following options are available:
134-
135-
- :guilabel:`Optional`: Customers can check out as guests and register later via the order
136-
confirmation email to track their order.
137-
- :guilabel:`Disabled (buy as guest)`: Customers can checkout as guests without creating an account.
138-
- :guilabel:`Mandatory (no guest checkout)`: Customers must sign in or create an account at the
139-
:ref:`Review Order <ecommerce/checkout/review_order>` step to complete their purchase.
140-
141-
B2B access management
142-
---------------------
143-
144-
To restrict checkout to selected B2B customers:
145-
146-
#. Go to :menuselection:`Website --> Configuration --> Settings`, and in the :guilabel:`Shop -
147-
Checkout Process` section, enable the :ref:`Mandatory (no guest checkout)
148-
<ecommerce/checkout/policy>` option.
149-
#. Scroll down to the :guilabel:`Privacy` section, go to :guilabel:`Customer Account`, and select
150-
:guilabel:`On invitation`.
151-
#. Go to :menuselection:`Website --> eCommerce --> Customers`, switch to the :guilabel:`List` view,
152-
and select the customers you wish to grant access to your :doc:`portal
153-
<../../general/users/portal>`.
154-
#. Click the :icon:`fa-cog` :guilabel:`Actions` button, then :guilabel:`Grant portal access`.
155-
#. Review the selected customers in the :guilabel:`Portal Access Management` pop-up and click
156-
:guilabel:`Grant Access`.
157-
158-
Once done, the relevant customers receive an email confirming their account creation, including
159-
instructions on setting a password and activating their account.
160-
161-
.. note::
162-
- You can revoke access or re-invite a customer using the related buttons in the
163-
:guilabel:`Portal Access Management` pop-up.
164-
- Users can only have one :doc:`portal access <../../general/users/portal>` per email.
165-
- Settings are website-specific, so you could set up a B2C website that allows guest checkout and
166-
a B2B website with mandatory sign-in.
167-
168-
.. seealso::
169-
- :doc:`Customer accounts documentation <customer_accounts>`
170-
- :doc:`Portal access documentation <../../general/users/portal>`
171-
172125
.. _ecommerce/checkout/steps:
173126

174127
Checkout steps
@@ -191,6 +144,11 @@ checkout options.
191144
.. note::
192145
Content added through building blocks is **specific** to each step.
193146

147+
.. tip::
148+
Restrict access to the :ref:`shop <ecommerce/customer_accounts/shop-access>` and :ref:`checkout
149+
<ecommerce/customer_accounts/checkout-access>` for specific customers, e.g., in a B2B business
150+
setup.
151+
194152
.. _ecommerce/checkout/review_order:
195153

196154
Review order

content/applications/websites/ecommerce/customer_accounts.rst

Lines changed: 113 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,131 @@
22
Customer accounts
33
=================
44

5-
Having customer accounts on an eCommerce allows customers to access all their documents from a
6-
single place. To access their account, customers must be **logged-in** on the eCommerce website,
7-
click on their **username** in the top-right corner of the screen, and click :guilabel:`My Account`.
8-
From there, customers can access their :guilabel:`quotations`, :guilabel:`orders`,
9-
:guilabel:`invoices`, etc.
5+
Using customer accounts for an ecommerce shop enables you to :ref:`manage customers
6+
<ecommerce/customer_accounts/account-creation>`, control access to the :ref:`shop
7+
<ecommerce/customer_accounts/shop-access>`, the :ref:`checkout
8+
<ecommerce/customer_accounts/checkout-access>`, or the :ref:`customer portal <portal/access>`,
9+
and support both B2B and B2C operations.
10+
11+
After logging in, customers can access their :doc:`customer portal <../../general/users/portal>`
12+
by clicking their username in the top-right corner of the screen and selecting :guilabel:`My
13+
Account`. From there, they can view all their documents in one place, such as quotations, orders,
14+
invoices, and more.
1015

1116
.. image:: customer_accounts/account-log.png
12-
:align: center
13-
:alt: Customer account log-in
17+
:alt: Customer account access
1418

15-
.. note::
16-
Customers can only have an account if the
17-
:ref:`sign in/up at checkout <ecommerce/checkout/policy>` option allows for account creation.
19+
.. tip::
20+
The customer account page can be customized with building blocks and other features through
21+
the :doc:`website builder <../website/web_design>`.
22+
23+
.. _ecommerce/customer_accounts/account-creation:
24+
25+
Customer account creation
26+
=========================
27+
28+
You can choose whether customer accounts and document access are available to everyone or restricted
29+
to invited users only. To do so, go to :menuselection:`Website --> Configuration --> Settings`,
30+
then scroll down to the :guilabel:`Privacy` section. Under :guilabel:`Customer Account`, select one
31+
of the following options:
32+
33+
- :guilabel:`On invitation`: Customers can only create an account if the website owner sends them
34+
an invitation.
35+
- :guilabel:`Free sign up`: Every website visitor can create an account and sign in. They will
36+
get access to the :doc:`portal <../../general/users/portal>` by default.
37+
38+
To send an email invitation to a customer:
39+
40+
- Go to :menuselection:`Website --> eCommerce --> Customers`.
41+
- Select a customer or click :guilabel:`New` to create one, ensuring an :guilabel:`Email` address
42+
is set.
43+
- Click the :icon:`fa-cog` :guilabel:`(Actions)` icon next to the record's name at the top-left and
44+
select :guilabel:`Grant portal access`.
45+
- In the :guilabel:`Portal Access Management` pop-up, click :guilabel:`Grant Access` to send the
46+
invitation.
1847

1948
.. tip::
20-
Similarly to the rest of the website, the customer account page can be customized with **content
21-
blocks** and other features through the **website builder**.
49+
To invite multiple customers at once, switch to the customers :icon:`oi-view-list`
50+
:guilabel:`List` view, select several customers, click the :icon:`fa-cog` :guilabel:`Actions`
51+
button, and select :guilabel:`Grant portal access`.
2252

23-
.. seealso::
24-
:doc:`/applications/general/users/portal`
53+
Once done, the customer(s) receive an email confirming their account creation, including
54+
instructions on setting a password and activating their account.
55+
56+
.. note::
57+
- When selecting the :guilabel:`Free sign up`, a clickable :guilabel:`Don't have an account?`
58+
link appears under the login form on the website.
59+
- The :guilabel:`On invitation` option is especially useful for B2B businesses that prefer
60+
to keep :ref:`prices hidden <ecommerce/prices/hide-prices>` on the website and grant access
61+
only to invited customers.
62+
63+
.. tip::
64+
It is possible to configure a website form with a :guilabel:`Create a Customer` :ref:`action
65+
<website/building_blocks/action>` to automatically create a customer record in the backend when
66+
filled in.
2567

2668
Access restriction
2769
==================
2870

29-
It is possible to allow or restrict the documents to which customers have access through the website
30-
builder. Log in your **own** account with your Odoo database credentials, and go to
31-
:menuselection:`Edit --> Customize`. From the website builder menu, enable or disable the documents
32-
customers can have access to.
71+
Once a customer account is created, it is still possible to adjust the access rights
72+
either globally or for individual users:
73+
74+
- :ref:`Revoke access or re-invite a customer <portal/access>`
75+
using the related buttons in the :guilabel:`Portal Access Management` pop-up.
76+
- Restrict :ref:`access to the shop <ecommerce/customer_accounts/shop-access>`;
77+
- Decide whether customers need to create an account to :ref:`complete the checkout
78+
<ecommerce/customer_accounts/checkout-access>`.
3379

34-
.. image:: customer_accounts/account-documents.png
35-
:align: center
36-
:alt: Documents to which customers have access to from their account
80+
.. tip::
81+
It is also possible to define the types of documents customers have access to. To do so, click
82+
your username in the upper-right corner of the website, select :guilabel:`My Account` and open
83+
the :doc:`website builder <../website/web_design>`. On the :guilabel:`Customize` tab, enable or
84+
disable access to specific documents as needed.
85+
86+
.. _ecommerce/customer_accounts/shop-access:
87+
88+
Shop access
89+
-----------
90+
91+
To restrict access to the entire online shop for users who are not logged-in, go to
92+
:menuselection:`Website --> Configuration --> Settings`, scroll to :guilabel:`Privacy` and under
93+
:guilabel:`Ecommerce Access`, select :guilabel:`Logged in users`. Select :guilabel:`All users` if
94+
the shop should be visible to every website visitor.
95+
96+
.. tip::
97+
To restrict access to the shop's pricing, use :ref:`pricelists <ecommerce/prices/pricelists>`
98+
with :ref:`country groups <ecommerce/prices/country-groups>`.
99+
100+
.. _ecommerce/customer_accounts/checkout-access:
101+
102+
Checkout access
103+
---------------
104+
105+
To allow customers to checkout as guests or force them to sign in/create an account, go to
106+
:menuselection:`Website --> Configuration --> Settings`, scroll down to the :guilabel:`Shop -
107+
Checkout Process` section, and configure the :guilabel:`Sign in/up at checkout` setting. The
108+
following options are available:
109+
110+
- :guilabel:`Optional`: Customers can check out as guests and register later via the order
111+
confirmation email to track their order.
112+
- :guilabel:`Disabled (buy as guest)`: Customers can checkout as guests without creating an account.
113+
- :guilabel:`Mandatory (no guest checkout)`: Customers must sign in or create an account at the
114+
:ref:`Review Order <ecommerce/checkout/review_order>` step to complete their purchase.
115+
116+
.. note::
117+
- Settings are specific to each website, allowing you to configure a B2C website with guest
118+
checkout and a B2B website that requires customers to sign in.
119+
- To use the :ref:`wishlist <ecommerce/products/wishlists>` feature, customers must
120+
create an account to save their favorite items for later.
37121

38122
Multi-website account
39123
=====================
40124

41-
If you own multiple websites, you can make customer accounts available across **all** websites.
42-
Then, the customer only needs one account. To do so, go to :menuselection:`Website --> Configuration
43-
--> Settings --> Privacy section`, and enable :guilabel:`Shared Customer Accounts`.
125+
When managing multiple websites, it is possible to make customer accounts available across *all*
126+
websites, allowing each customer to use a single account. To do so, go to :menuselection:`Website
127+
--> Configuration --> Settings`, in the :guilabel:`Privacy` section, enable :guilabel:`Shared
128+
Customer Accounts` option.
129+
130+
.. note::
131+
When operating both B2B and B2C online shops, it's recommended to use separate websites for each
132+
business model.
Binary file not shown.

content/applications/websites/website/web_design/building_blocks.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ in your database, if applicable. To add a form to a website page, drag and drop
5858
.. image:: building_blocks/form-block.png
5959
:alt: Example of a form block
6060

61+
.. _website/building_blocks/action:
62+
6163
Action
6264
~~~~~~
6365

0 commit comments

Comments
 (0)