I'm working on a design for implementing several major customizations that are somewhat outside of AbleCommerce, but will need to interact with AC's API. I have a few questions.
1. How are other people customizing AC...?meaning, if I need to persist additional data outside the scope of AC, is the best practice adding additional fields to the relevant AC tables (then modifying the source API or extending it); creating a new table in the AC database (again modifying the source API or extending it); and finally, creating a separate database to persist the information and either extending the API or creating new objects all together.
Just looking for the best practices...some experiences that other people had in making their customization decisions
2. Can you access the AC database through the API in a totally separate application (i.e., Web Service)? There is a lot going on in the web.config file, and I can get any custom code to run within the store itself, but wondering how to get it to work outside of the store. Any experiences with this would be helpful.
Thanks
Applying customizations
Re: Applying customizations
Where ever possible create new tables. You can create them in the same database but better to prefix them with some word like custom_MyTable or derekz_MyTable. Then you can create your wrappers for them.1. How are other people customizing AC...?meaning, if I need to persist additional data outside the scope of AC, is the best practice adding additional fields to the relevant AC tables (then modifying the source API or extending it); creating a new table in the AC database (again modifying the source API or extending it); and finally, creating a separate database to persist the information and either extending the API or creating new objects all together.
Just looking for the best practices...some experiences that other people had in making their customization decisions
Read about Data Access Layer from here
http://wiki.ablecommerce.com/index.php/ ... cess_Layer
You can create a child application inside the store application.2. Can you access the AC database through the API in a totally separate application (i.e., Web Service)? There is a lot going on in the web.config file, and I can get any custom code to run within the store itself, but wondering how to get it to work outside of the store. Any experiences with this would be helpful.
Re: Applying customizations
So, what you are saying is that I could create a web service (.asmx) within the store application. Then it will utilize the store applications web.config file and the CommerceBuilder API should be good to go.You can create a child application inside the store application.
Additionally, are you saying that you cannot use the CommerceBuilder API outside of the store application (as far as interacting with the AC database)?
Thanks a bunch for all your help. You've answered a ton of my questions.
Re: Applying customizations
Code: Select all
So, what you are saying is that I could create a web service (.asmx) within the store application. Then it will utilize the store applications web.config file and the CommerceBuilder API should be good to go.
Code: Select all
Additionally, are you saying that you cannot use the CommerceBuilder API outside of the store application (as far as interacting with the AC database)?
Thanks a bunch for all your help. You've answered a ton of my questions.
- BryanWarmoth
- Lieutenant, Jr. Grade (LT JG)
- Posts: 44
- Joined: Fri May 23, 2008 11:24 am
- Location: Puyallup, Wa
- Contact:
Re: Applying customizations
We created a separate database and seperate dll for our customizations in Able Commerce. This allows to access the database and dll outside of Able Commerce in our accounting software and reporting tools. It was a long process but now that it is complete it is very helpful and I feel this was the best route for our setup. Let me know if you have any questions. I'm sure I've run into most problems trying to get our additions working with Able Commerce.