New features
Version 3.x > New features > Ecommerce->CustomEcommerceProvider View modes: 
User avatar
Member
Member
KeithInAsia - 9/11/2008 4:44:39 AM
   
Ecommerce->CustomEcommerceProvider
Has anyone been successful with the entire proceedure for recompiling the CustomEcommerceProvider and using it?

I must create some algorithms for scaling my shipping charges and I'd like to see if anyone else has the formula worked out for a complete procedure on the whole operation.

The actul code is going to be easy but getting this all set up is very challenging and I've run into a lot of road blocks.

Is there anyone out there who I could PAY to generate the dll if I give you the basic algorithms?

User avatar
Member
Member
KeithInAsia - 9/11/2008 10:49:13 AM
   
RE:Ecommerce->CustomEcommerceProvider
I received information from Martin Dobsicek in support and I was able to get the basics to work.

Part of my problem was that I kept copying the web project (the web site) out of its installment directory -- and that really caused the project to not link correctly.

So, rule number one - open the project in place with VS.

There are about 8 steps required to add in the CustomECommerceProvider project and set up the dependencies between the main project (the web site) and the custom project.

Once correctly set up -- you alter source code in the custom project to over-ride the normal calls to the native ECommerceProvider and you return those custom values.

Ask VS to build the site - run the site with a browser - the values you custom programmed will appear in place of the normal calculated values.

I have not exported yet to my deployment machine. I don't know if the new dll and config files will automatically be sent over in the export/import. I hope they will.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 9/12/2008 3:11:31 AM
   
RE:Ecommerce->CustomEcommerceProvider
Hi Keith,

I am just posting this in case some other users will have some troubles.

Here you can find the information about how to use custom providers - http://www.kentico.com/docs/ecommerceguide/using_custom_providers.htm

And here is a simple example how to override the shipping calculation - http://www.kentico.com/docs/ecommerceguide/overview10.htm

Best Regards,
Juraj Ondrus

User avatar
Member
Member
KeithInAsia - 9/12/2008 7:42:38 AM
   
RE:Ecommerce->CustomEcommerceProvider
Another problem that users are going to encounter is understanding the object model. The documentation doesn't explain how objects relate to each other very well.

So, to get around this a user will need to put break points in all the functions of interest. When those breakpoints are hit, highlight an object varible in scope and right mouse click and select QuickWatch. That will open up a temporary watch window window and display the object for inspection. At this point you'll see what that object contains and it's other relationships.

You'll need to copy down the structure that you see and create your intended design approach.

Putting break points in many areas will also help you determine when and how many times these functions are called.