Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
10457 Lượt xem

If a user want to checkout in my shop he has to fill out the basic required fields like Name, Email etc.
Is there any way to change which fields are requiered and which are not necessary?

I want the ZIP Code to be checked and I dont want the phone number to be required.



Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

I found the solution:

The answer is in the website_sale modul.

website_sale/controllers/main.py
(row 447-450)

    mandatory_billing_fields = ["name", "phone", "email", "street2", "city", "country_id"]

optional_billing_fields = ["street", "state_id", "vat", "vat_subjected", "zip"]
mandatory_shipping_fields = ["name", "phone", "street", "city", "country_id"]
optional_shipping_fields = ["state_id", "zip"]

My team created a Modul to change the mandatory fields and we will put it online soon.

But for now this should help. 

Edit: Here is the module:
https://github.com/KontorConsulting/Odoo-8-Modules/tree/master/website_sale_mandatory_mod

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi Paulo,


check this post:

https://www.odoo.com/de_DE/forum/hilfe-1/change-required-field-in-checkout-form-in-ecommerce-180454

Best regards

Cetin

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Is there a solution to this problem for v13? Has this module been upgraded?

https://github.com/KontorConsulting/Odoo-8-Modules/tree/master/website_sale_mandatory_mod

I think it would be very useful, especially because 'phone' is a required field which is not usually asked for in a b2c environment.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 9 23
1496
0
thg 2 22
2298
2
thg 7 19
6562
1
thg 1 22
4162
Duplicate Đã xử lý
1
thg 12 24
16335