Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Damian Green 452 posts 1433 karma points
    Jun 12, 2013 @ 14:35
    Damian Green
    0

    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

     

     

  • Morten Skjoldager 440 posts 1499 karma points
    Jun 14, 2013 @ 10:24
    Morten Skjoldager
    100

    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 :) ? 

  • Damian Green 452 posts 1433 karma points
    Jun 14, 2013 @ 10:45
    Damian Green
    0

    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.

     

     

  • Morten Skjoldager 440 posts 1499 karma points
    Jun 17, 2013 @ 13:03
    Morten Skjoldager
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft