How to restrict website shop product for logged in users ?
For Example,
A list of product in website shop page ,based on the product Admin want to give access to the product for logged in users and that product should only visible to that Users.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
How to restrict website shop product for logged in users ?
For Example,
A list of product in website shop page ,based on the product Admin want to give access to the product for logged in users and that product should only visible to that Users.
Hi Rupesh,
Shop page is the page in which all products are shown for the visitors.If you check the controller method for the corresponding route the products objects are passed to the template as values for rendering.There are conditions applied for filtering the products and product categories as well.For managing the products shown for users you will have to override the same controller method and pass only those products based on the logged in user.This way you can manage the products shown based on the logged in user.
Regards
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 12 23
|
2798 | ||
|
0
thg 6 16
|
5648 | ||
|
1
thg 6 24
|
2698 | ||
|
0
thg 10 22
|
2259 | ||
|
1
thg 1 22
|
3240 |