Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Hi,
I think you're correct, this class should be obsoleted, especially the EntryView and NodeView are now totally obsolete - in 7.5 we switched to CMS-style page view and not recommend the old "DisplayTemplate" way anymore. I believe it was introduced to provide some "standardized way" to set some specific page settings for Commerce, but it provides very little value now.
Thank you for bringing this to our attention. I'll file a bug for that.
Regards.
/Q
EPiServer.Business.Commerce.Providers.StaticUrlProvider class has private method GetLinkFromSettings that requires parameter commandName. It supports 14 or so commands. By looking at code we can see that 12 of these methods are aware of EPiServer 7.x, but two still think its EPiserver 6.x, why is that so?
begining of GetLinkFromSettings method:
Stright away we can see, for example, CHECKOUT command tries to convert start page property to PageReference as it is don by almost all other commands, except ENTRYVIEW for example, to se it we need to dive into begging of GetEntryViewPage method:
It tries to convert property(that should point to page Reference) to string and even if that pageReference in start page is set - it will convert to null and therfor method does not work as it did in EPiServer 6.x
Is this intentional? Am i missing something? Maybe this class is not to be used, but then its not marked as obsolete? What have happened here?
At the moment I have fixed it by reflecting and modifying this class and making appropriate changes to urlService in web.config so result is as I expect it, but this should be fixed unless there is some really good reason not to, is there?
PS. This code is from package: EPiServer.Commerce.Core.7.10.3 Version:7.10.3.184