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

Is there an easy, non-technical way to hide the "shop" in the header menu for logged out users?  I have a client that only wants to show the shop/products to logged in users.  

Thank you, 

Gil 

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

Hi Gil,

If you want the shop page only visible/accessible for the logged-in users, just make a little change in the route for the shop.

In website_sale -> controllers -> main.py

By default,



You can see that the auth='public' is given in the route.

You have to change it to auth='user', so that the page will be accessible only for logged users.




Thanks

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

You can do this in odoo online?  

อวตาร
ละทิ้ง