Note: Not word, because the product is NOT invisible to ABC, it is part of the Guest group.
Config 2: [email protected]: Guest, ABC ACL in XPTO PRODUCT: Admin, Registered Note: Not word, because no product appears in the store, if it is not registered.
I know I can make new url (multiple stores), but still .. how can I solve this?
I have read your question a few times, but still not sure I understand completely.
I think you are asking how to make a particular product accessible to particular customer ROLES only. Is that correct?
So, by default you have a few roles in the system:
Guest..this is everyone who visits your website Admin.. this is only the customers who should access the admin area Forum Moderator.. this is a customer who can add, delete or edit forum topics Registered.. this is a customer who has an account
You can create a new ROLE and manually add each customer who is qualified to see the XPTO product to this ROLE. Those customers should be in the "Registered" role AND in the new special role: CanSeeSpecialProducts..this is a customer who can see the XTPO product
Then on the edit product screen >> access control list >> you must check the box, then choose only the new special ROLE that is allowed to see the XTPO product.
Note: Not word, because the product is NOT invisible to ABC, it is part of the Guest group.
Config 2: [email protected]: Guest, ABC ACL in XPTO PRODUCT: Admin, Registered Note: Not word, because no product appears in the store, if it is not registered.
I know I can make new url (multiple stores), but still .. how can I solve this?
I dont think ACL, as it comes out of the box, will solve your case because it is meant for hiding products for everyone except of a specific customer role (see my post here)
//Guest alws visible.. sorry for hardcode :( If (role1.Id == 4) { Return = true; } Else { Foreach (var role2Id in GetCustomerRoleIdsWithAccess (entity)) // Aker = Aker, Registered // produot is invisible to aker If (role1Id == role2Id) { // Return = false; } } }
I also changed a stored procedure
As the client wanted to work I left it that way, but I left it to analyze how to improve and create a plugin that makes the ACL work the other way around, ie define who I want to hide for.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.