Integrating with CommerceBuilder

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
spirituc
Ensign (ENS)
Ensign (ENS)
Posts: 6
Joined: Wed Jan 19, 2011 12:01 pm

Integrating with CommerceBuilder

Post by spirituc » Wed Jan 19, 2011 12:14 pm

We're running AbleCommerce version 7.0.6.
We have a web application of ours where we want to list all catalogs that are configured on our AbleCommerce database.
For that we're using the code:
CommerceBuilder.Catalog.CatalogNodeCollection nodes = CommerceBuilder.Catalog.CatalogDataSource.LoadForCategory(0, true);

Is this the best/correct way to do so? We can get the data we want, but we're still in doubt whether we're doing it the best way or not.
Another question is what do we need to have on our web application at all levels:
- web.config (modules, handlers, namespaces, sections)
- dlls (CommerceBuilder.dll, CommerceBuilder.Data.dll, CommerceBuilder.Configuration.dll??)

Much appreciated and kind regards,
HR

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Integrating with CommerceBuilder

Post by mazhar » Thu Jan 20, 2011 4:34 am

For that we're using the code:
CommerceBuilder.Catalog.CatalogNodeCollection nodes = CommerceBuilder.Catalog.CatalogDataSource.LoadForCategory(0, true);
Yeah its OK.

Secondly AbleCommerce DLLs will not work outside of AbleCommerce application context. For example web application running as different application. So if you want to utilize AbleCommerce DLLs in your custom project codes you need to run your web application within AbleCommerce application scope. If you are only interested to get and show catalog data and want to keep your web application as independent application. In this case you can try to create some web service in AbleCommerce that may query catalog using AbleCommerce API and then will return your custom catalog item objects containing catalog data.

Post Reply