I saw that http://drupal.org/project/commerce_flat_rate has a DB table and a UI for creating custom flat rate services. I'm currently working on a module that uses order weight and different weight tariffs, and to make this extensible I'd be pretty much duplicating the code for custom services from Commerce Flat rate.

Therefore, it seems logical to me that Commerce Shipping could provide a framework for shipping method modules to use if they require admins to create shipping services, and save a lot of code duplication.

(These could possibly be done with Entity API's system for configuration entities?)

Comments

googletorp’s picture

Status: Active » Postponed

It would be tricky to make something that is usable for all shipping methods - I'm not convinced this is a good idea but will think about it.

joachim’s picture

I was thinking it could be done with a DB field for all the common properties like name, label, weight, etc, and then a serialized options field for anything else the shipping service type needs to store. This would be the same way that Flag module stores flags and lets different types store their own settings.

Renier’s picture

Maybe not the best place to post, but guys, what IS currently the (best) way to create a weight tariff shipping shipping service? I cannot seem to create one atm? Help or reference would be appreciated.

googletorp’s picture

Issue summary: View changes
Status: Postponed » Closed (won't fix)

Doesn't look like there is any traction for this.