This could be tricky, because the names of some things have changed. What used to pass as a shipping method is now technically a shipping service, and since we need to be able to easily generate these in loops as opposed to plugin files, I've reverted to an info hook method of defining them. Additionally, the shipping_method field attached to the shipping line item type has been renamed to commerce_shipping_service. We'll need to ensure that the update can accommodate this change somehow. My hunch is we'll need to attach the new field, copy / transform data over, and delete the old field.
I believe I left the names of the customer profile type and checkout pane untouched. I did add an "administer shipping" permission, as I don't think there was any such permission before. The shipping method example has been updated to work with 2.x, but I still need to update Flat Rate. I don't think it will be worth attempting an upgrade path for the example module - it can just be uninstalled before updating and reinstalled afterward if necessary.
Comments
Comment #1
EndEd commentedlooking for a Flat Rate module update :)
Comment #2
googletorp commentedThe field name change has been completed in 1.x-dev
Comment #3
rszrama commentedWhoa, wasn't expecting that shot of good news! Great, working on a Shipping 2.x release will hopefully go much faster thanks to this and getting the Commerce 1.1 release out of the way.
Comment #4
googletorp commentedI've added update hooks to 2.x, the field name change and a new one to create the cache table. Does nothing for 2.x based installs.
Comment #5
muschpusch commented@googletorp: so we can test updating? :)
Comment #6
googletorp commented@muschpusch This is a work in progress, there is not a full path completed yet, but some of the parts have been created.
Right now this is fixing the name of the shipping method field on line items, and installing the cache table introduced in 2.x. We still need the most difficult and important part, trying to upgrade existing shipping rules. Not sure how successful that is going to be, since the API/architecture changes are so great.
Comment #7
googletorp commentedI believe this is completed for Commerce shipping itself, but not for methods. I don't think Commerce shipping should handle changing method rules, that should be handled by the module supplying the method if needed.
Comment #8.0
(not verified) commentedAdding more info about the shipping method example module.