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.

  • David Brendel 792 posts 2970 karma points MVP 3x c-trib
    Feb 12, 2013 @ 13:53
    David Brendel
    0

    Overriding the PayPalPageBuilder in uCommerce 2.6

    Hey all,

    i have the task to override the PayPal PageBuilder in uCommerce 2.6. I have already done it successfully in uCommerce 3. But in uCommerce 2.6 i don't really know in which configuration i have to insert my custom dll.

    In uCommerce 3 we have to put it in the custom.config file. But in uCommerce of course there isn't one.

    I really only need the PageBuilder, i don't want to ovveride all of the PayPal stuff.

    Regards

    David

  • Morten Skjoldager 440 posts 1499 karma points
    Feb 13, 2013 @ 11:27
    Morten Skjoldager
    0

    You should just configure it where the out-of-the-box component is configured. I think it's just components.config. If not, there's a few imports where it should be in. you can go create a custom.config and insert that as a reference in components.config. The reason there's one in uCommerce 3 is that the components.config would be overridden every time there's an update to uCommerce (installing it again). The custom.config would never be overridden. 

     

    Hope it makes sence.

  • David Brendel 792 posts 2970 karma points MVP 3x c-trib
    Feb 13, 2013 @ 15:40
    David Brendel
    0

    Thanks for the answer so far.

    I added a new entry in the components.config likie this: 

    
    < component id="PayPalWebsitePaymentsStandardPageBuilder"        service="UCommerce.Transactions.Payments.PayPal.PayPalWebsitePaymentsStandardPageBuilder, UCommerce.Transactions.Payments" 
    type="xxxx.Extensions.Shop.CustomPayPalPageBuilder, xxxxx" />

    But it doesn't seem to work. Is there another location were i have to add this?

  • Morten Skjoldager 440 posts 1499 karma points
    Feb 13, 2013 @ 15:51
    Morten Skjoldager
    0

    If it's only the page builder it should be enough to configure it as you did. Another thing is to try removing the old reference from components as Castle windsor takes the first occurance of the registered type that's injected in the constructor which would be the standard component and not yours. But i'm not entirely sure of this.  

  • David Brendel 792 posts 2970 karma points MVP 3x c-trib
    Feb 14, 2013 @ 11:12
    David Brendel
    100

    Got it now working.

    Just overriding the PayPalService and calling my new PageBuilder. And to make it work changed the PayPal Entry of the PamentMethods in web.config.

    So everything is now working. Sadly that i have to override the PayPalMethodService but main point is that it now works.

Please Sign in or register to post replies

Write your reply to:

Draft