Hi Pierre:
The only way I've found to filter/restrict access is to check the
userLoginId and not the partyId.
BTW, if your users are not logged in, they are not "anonymous" users.
Users only become OFBiz "anonymous" users when they are automagically
logged in by the Webapp. The OFBiz ecommerce Webapp only logs in users
sometime after (can't remember exactly when) they start the checkout
process - not when they are browsing the site and navigating the catalog.
One final thought: If you are using the search engine friendly
CatalogUrlFilter on your public facing OFBiz webapp, you really can't
stop anyone from seeing any product if they know the productId. (Just
something that I discovered. Actually, truth be told, someone smarter
then I am pointed this out to me - in graphic detail - sometime ago.)
Best Regards,
Ruth Hoffman
Owner Adaptive Enterprise Solutions
http://www.aesolves.com
[email protected]
On 10/22/13 2:26 AM, Rishi Solanki wrote
Pierre Smits,
All setup described by you looks correct to me. Please take a look at the
View Allow category setup and its filter applicability in classes
ProductSearch and ProductSearchSession, it filters the search results if a
product is not member of this view allow category. So general note is,
adding parties to category is fine, also add products to that category and
then finally do filtering based on it as done for view allow.
Could you please share example which tells the setup done by you, would be
helpful to visualize what you are trying to achieve.
Thanks!
--
Rishi Solanki
Manager, Enterprise Software Development
HotWax Media Pvt. Ltd.
Direct: +91-9893287847
http://www.hotwaxmedia.com
On Tue, Oct 22, 2013 at 2:17 AM, Pierre Smits <[email protected]>wrote:
Hi All,
I am trying to accomplish the following:
In a webshop I need to show that a specific part of the products registered
in the catalog manager are only shown to a subset of the users accessing
the ecommerce component. So I have created the catalog and attached it to
the store used in the ecommerce component.
Now, the products that should be visible to all users (anonymous and
logged-in) I have added to a category that I subsequently inserted in the
hierarchy headed by a category designated as 'browse root (one)
The products that should only be visible to a certain group of logged-in
users I have added to a different category and inserted that one also in
the hierarchy. Now, in order to limit visibility to only the users of the
group I added the partyIds of those users to the category.
But when I access the ecommerce component I see the category still visible
and products listed when I click the category.
Apparently I missed some configuration to limit the visibility, but I can't
seem to find it.
Have you experienced the same and solved this? Can you share and enlighten
me?
Regards,
Pierre Smits
*ORRTIZ.COM <http://www.orrtiz.com>*
Services & Solutions for Cloud-
Based Manufacturing, Professional
Services and Retail & Trade
http://www.orrtiz.com