Developer forum

Forum » Development » Writing my own Navigation Provider

Writing my own Navigation Provider

Anders Ebdrup
Reply

Hi,

I have to make some changes to the current AssortmentNavigationProvider but I am facing some issues with internal methods - e.g.:

  • UrlProviders.Handler.Initialize()
  • eCommerce.Products.Product.CheckShowProductSettings(product)
  • AssortmentPermission.HasAccessToProduct(product)

can these methods be made public so it will be easier to make a custom implementation?

And/or make some methods virtual in the AssortmentNavigationProvider?

  • GetAssortmentsAllowedGroups
  • GetAssortmentsDeniedGroups
  • IsChildDeniedGroup
  • GetChildDeniedGroups

Best regards, Anders


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Anders

You can take the code from TFS and build it into your own provider. These are not public since they are an implementation in it self and we do not want to make these publically available because we might need to change it in future versions. As you know, this specific features has undergone some changes and to avoid issues with compatibility it is not good to expose them...

Sorry for the inconvenience.

Nicolai

Votes for this answer: 1
 
Anders Ebdrup
Reply

Hi Nicolai,

 

It's okay, I just wanted to ask to make these custom implementations easier.

What does this function do: UrlProviders.Handler.Initialize()

Should I do anything special to initialize this?

 

Best regards, Anders

 
Anders Ebdrup
Reply

Hi Nicolai,

 

It seems that the standard "AssortmentNavigationProvider" is called even though I have my own implementation of this - is this intended behaviour?

 

Best regards, Anders

 
Anders Ebdrup
Reply

Hi Nicolai,

 

We have some serious performance issues with the current assortment navigation provider - will it be possible to let the default assortment navigation provider listen to this settings from GlobalSettings.aspx: "UseOnlyCustomNavigationProvider" and not be used then this is set to "true"?

 

Best regards, Anders

 
Jonas Krarup Dam
Reply

Hi Anders,

In the hotfix that we have released today, we have included a new, simpler assortment navigation provider, which is significantly faster than the previous implementation. This is mostly because it only look at the location of products, not at prices, stock status, etc. 

You might want to take a look at that.

If you are still having problems, let me know, and we'll look into adding this check to the code.

Regards, Jonas

 
Anders Ebdrup
Reply

Hi Jonas,

 

We will still need the current AssortmentProvider to be controlled from the setting as we have performance issues with just three concurrent users with the current implementation.

 

Best regards, Anders

 
Jonas Krarup Dam
Reply

Hi Anders,

In the latest version, you can select which navigation provider to use, under page settings:

 

It seems like that's what you need, isn't it?

any non-selected providers will be ignored.

 

Regards, Jonas

 

You must be logged in to post in the forum