I would like to set up a B2B platform on my stunning OpenERP website. To achieve this, I need to hide the Shop menu and the ecommerce content (product pages, etc) for all the anonymous website viewers. How can I do this?
How to hide the "Shop" menu item? Go to Settings > Technical > Security > Record rules and create a new rule:
- Object: Website Menu
- Apply for Read access
- Rule definition: [('url','not like','%/shop%')]
- Group: Public
How to make the eCommerce pages unreachable for people who are not registered as employees or portal users?
- Open your shop and access the page HTML editor
- Select the Product page
- Add the following attribute in the first <t> tag (name="Products"): groups="base.group_user,base.group_portal"
Now you can open your website as an anonymous person. You do not retrieve the Shop menu and if you try to reach yourdatabasename/shop, you get an empty page.
I followed the steps, and the user is no longer able to access to mysite.com/shop.
but... the public user can still access to my shop store via google (in google I see all the items that I have on the shop) and access to "add to cart" button.
To avoid this issue:
You need to install the "Warning Messages and Alerts" module; then you need to go to Sales -> Customers -> "Public User" -> Warnings -> Warning on the Sales Order -> Blocking Message.
@Luke as I cannot add a new comment or answer I'll answer to you by editing my previous answer. As far as I understand from you my wish cannot be accomplished in the SAAS version so I will not start a new post for now. In case I plan to install on VPS instead I might get back to you. Thx for your help so far.
I would like to use the webshop as a catalogue only to users who are not logged in showing public price. However only invited users (retailers) are allowed to logon and able to order at the (wholesale) pricelist assigned to them.
Therefore I'm looking for a way to only remove the "add to cart" button from the product overview and product page. Tried looking for a submit tag in the html where I could put groups="base.group_user,base.group_portal to see if this would only hide the cart button but couldn't find a spot to put it.
Anybody any suggestions?
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 4/30/14, 10:28 AM|
|Seen: 9774 times|
|Last updated: 3/1/16, 4:00 PM|