I am trying to make the website shop only accessible to customers who have a log in. Alternatively, prices should only be available to members who have a log in. Is this possible?
Many thanks for any help
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I am trying to make the website shop only accessible to customers who have a log in. Alternatively, prices should only be available to members who have a log in. Is this possible?
Many thanks for any help
Hi,
Yes it is possible. You need to override the shop route and give auth='user'. Eg:
@http.route([
'/shop',
'/shop/page/',
'/shop/category/',
'/shop/category//page/',
], type='http', auth="user", website=True, sitemap=sitemap_shop)
def shop():
return super().shop()
Hope it helps
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye Olİlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
---|---|---|---|---|
|
1
Eyl 24
|
1229 | ||
|
2
Oca 23
|
6649 | ||
|
0
Şub 21
|
2450 | ||
|
0
Mar 17
|
3513 | ||
|
1
Ara 16
|
4457 |
Hello,
Yes, you can show the product price to only log in users.
You need to take some changes from coding side.
Thanks,
shivoham.odoo@gmail.com
Thank you so much for your help