Hello,
I am currently working on a project where we're using the "new" Ecom URL Provider that takes an alternateUrlKey - a given language code - as the 4th parameter (see ssForForum).
In my Ecom URl Provider I am parsing my languages (hardcoded) - see attached ssForForum2 - to the Mapping instances in my list which I later return. I have debugged it, and my list contains all of my productids for each country which is my goal.
However, when trying to getthe Ecom Url Provider to actually use the chosen country something goes wrong. According to DW I am to set the "alternateUrlKey" to the respective language as early in the process. I am doing that in my ApplicationBeginRequestObserver.cs. (see attached ssForForum3) . The method HCBase.Util.GetCurrentLanguageCode() returns a session variable containing the chosen country - if e.g. Germany - "de" is Parsed to this Session. However this happens on a PageGlobalTagsNotificationSubscriber as I dont have access to the Pageview before this.
So basically, the binding from the Session (or chosen country) to the Ecom URL Provider is somewhat missing.
In other words I cannot seem to trigger the alternateUrlKey.
BR
MikkelTO