Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
287 Представления

I’m working with Odoo 18 (Community Edition) and I’d like to customize the checkout process on the eCommerce website.

Specifically, I want to make the Email field non-required on the Checkout page.

Has anyone done this before and can share the best practice?

 

Аватар
Отменить
Лучший ответ

Hi Ali,

By default, Odoo makes the email field required at checkout because it’s used to identify the customer, send confirmations, and link the contact to the sales order. There’s no setting to disable this in Community.

If you really want to make it optional, you’d need a small customization:

  1. Inherit the website sale checkout template (website_sale.checkout) and remove the required="1" from the email input.
  2. Override the controller (website_sale) to bypass the validation that checks for the email field.
  3. Make sure you still have another way to identify the customer (phone, login, or generated contact), otherwise you’ll run into duplicate/anonymous customers issues.

Best practice: instead of removing it completely, some people replace it with an optional field and auto-generate a placeholder email for customers who don’t enter one (e.g., guest123@yourshop.com).

Hope this helps!

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
нояб. 24
1229
2
апр. 25
1299
1
дек. 23
1573
1
мар. 15
7212
1
окт. 21
4653