nwazet ecommerce - Shipping areas

Topics: Customizing Orchard, Writing modules
Apr 9, 2013 at 6:51 PM
I'm using nwazet ecommerce and I'm doing some small change to adapt to my situation.
Currently shipping areas are hardcoded in core file:
I see that it implements: IShippingAreaProvider so I think that this come with extensibility/replacement in mind.
I was wondering how to allow users change this list.
I can easily create a settingsarea part and inject on admin menu but before doing this:
How can I bind my own implementation so that it will be used instead of hadcoded one?
An easy mod woud replace: GetAreas in CoreShippingAreas and get list from database but this would destroy all extensibilty I suppose.
What is the proper way to override it?
Apr 10, 2013 at 7:31 AM
I don't have details to give on this as it's never been extended. I would be very careful with this as there is some coupling with Google Wallet. But if you do have a dynamic replacement, I would actually remove the hard-coded one entirely.