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
Integrating with CommerceBuilder
Re: Integrating with CommerceBuilder
Yeah its OK.For that we're using the code:
CommerceBuilder.Catalog.CatalogNodeCollection nodes = CommerceBuilder.Catalog.CatalogDataSource.LoadForCategory(0, true);
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.