Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4 ตอบกลับ
11729 มุมมอง

Which is the best way to limit access to ecommerce exclusively to invited users or members?

Thanks

Ricardo

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

1. Specify that only members of the Internal User and Portal groups should have access to the Shop Menu, by adding the groups to the Menu like this:


You would get to this screen by navigating to the Website App, then Configuration --> Menus


2. Specify that only members of the Internal User and Portal groups should have access to the content of the SHOP page, by adding the groups tag to line 2 like this:


You would get to this screen by navigating to the Shop Page on the website and clicking Customize --> HTML/CSS/JS Editor




อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Thanks Odoo Technical Marketing for your solution!!
But with this solution the visitor goes to a blank page, which is maybe not very friendly.
How could access be limited and the visitor be redirected to the /web/signup page if free sign up is allowed or to the /contactus page?
Thanks


answer update:

see also this nice video who extends "Odoo Technical Marketing" answer:

https://www.youtube.com/watch?v=m4PyXEw95Tw&t=7s

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi @all,

we've been running into the same issue but unfortunately the mentioned field "visible groups" is not available in v16 anymore...

You can find the corresponding git-discussion here: https://github.com/odoo/odoo/pull/83505

In my opinion, it would be best to solve this with a third-party module like https://apps.odoo.com/apps/modules/16.0/bi_website_page_security_hide_menu/ (we haven't tested it yet). Alternatively one can change the XML-templates with t-ifs to restrict access.


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi there,

On version 16, we have used OCA modules for both menus and pages. Very simple and handy.


Good luck,

Hamid - bitigloo GmbH

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ส.ค. 24
1479
0
พ.ค. 23
1723
0
ต.ค. 19
4152
1
ก.ย. 22
2142
0
มี.ค. 21
2142