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.
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.
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.
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
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.
Thanks for the answer so far.
I added a new entry in the components.config likie this:
But it doesn't seem to work. Is there another location were i have to add this?
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.
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.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.