Both of these interfaces allow for custom services to be plugged in.
The pricing services you can inherit from the PricingService class but with the UrlService you have to implement the interface.
Is there a specific reason for this architecture or is that just how it is? I am simply asking to understand why the system has been built the way it has.
Yes - i have built a custom pricing service to allow for partner pricing tables and thought i was going have write a custom urlservice but now realised i dont need to. The questions were just out of interest in understanding the architecture as I think its put together nicely from what i have seen so far.
IUrlService and IPricingService implementations
Both of these interfaces allow for custom services to be plugged in.
The pricing services you can inherit from the PricingService class but with the UrlService you have to implement the interface.
Is there a specific reason for this architecture or is that just how it is? I am simply asking to understand why the system has been built the way it has.
Thanks
Hi Damian,
That's not entirely true :)
You can easily extend the UrlService like so:
publicclassMyUrlService : UrlService
{
public MyUrlService(ILocalizationContext localizationContext) : base(localizationContext)
{
}
public override string GetUrl(ProductCatalog catalog)
{
//MyContent here
return"MyNewGeneratedString";
}
}
Out of Queriosity did you wanna do somthing with the UrlService and/or priing service, or were you just on a uCommerce safari :) ?
Thanks for this.
Yes - i have built a custom pricing service to allow for partner pricing tables and thought i was going have write a custom urlservice but now realised i dont need to. The questions were just out of interest in understanding the architecture as I think its put together nicely from what i have seen so far.
That's great to know :) We try to build everything as intuitive and smooth for the users.
Sounds like you've been struggeling with some Url rewritting stuff. Anything you need to know or have any questions ? :) Let me know!
Regards
is working on a reply...