Email sent. Thanks again for the help so far. Appreciate it.
Boyko,
After testing, on initial category load there is no call to the ProductLoadAllPagedNopAjaxFilters SP. The SP is only called when selecting an attribute filter. The result being that the specification attribute filter options are not displayed on initial category page load if the user is not explicitly assigned a role associated to the category products.
So I assume we're back to the initial cause in that the AjaxFilters class methods are using the CustomerRoles virtual property instead of the GetCustomerRolesIds() extention method.
If you can contact me directly via the email in my customer profile, I'd be happing to discuss pricing for a customized build of the class DLL.
Boyko,
I appreciate the response. Unfortunately the use of CustomerRoles virtual property on the domain model makes it difficult to intervene in this case.
Its it at all possible to get a custom version of the v3.9 plugin DLL that uses the GetCustomerRoleIds() extension method in Nop.Services.Customers.CustomerExtensions as is used with the default Nop.Service.ProductService.SearchProducts() method and subequent ProductLoadAllPaged stored procedure.
Is there a way to get the Ajax Filters plugin to ingore product ACL for users with Administrator role?
We maintain our own custom application based on NopCommerce v3.9 and use your Ajax Filters plugin as part of this application, particularly for Specification Attribute filtering. As well, we make extensive use of customer roles and ACL permission to control product access as well.
We have two administrator type roles; a the default NopCommerce admin role and a second and somewhat restricted admin role. However, for both roles we want to effectively ignore catalog/product ACL restrictions for these users so that we don't have to explicitly add or otherwise maintain additional roles for the associated users.
In testing, I've modified the Nop.Core.Customers.CustomerExtensions.GetCustomerRoleIds() method to not only return the roles actually assigned to the user, but also include all other role Ids if the user is an admin. But it appears your Ajax Filters plugin doesn't utilize this method to get the customer roles Ids as I don't see that they are passed to the Ajax Filters stored procedure in the database.
Is there another core method that can be modified to pass all role Ids to Ajax Filters to accomplish the ACL override for admins?
We are working through our first configuration and are having trouble getting the category images to show up on the home page the way we would like.
I have figured out how to get them to display the via "Smart Product Collections" plug-in but this is not what we want. We are looking to have the top 4 category images side by side just under the slider similar to the default NOP theme. When I disable the "Smart Product Collection" that renders the category product collection, the behavior does no go back to default.
Any ideas on how we might accomplish this?