Hi,
this is some general feedback on the available documentation.
From #1778566-2: Commerce Shipping 2.0 Plugin Upgrade Path
plugins have been dropped completely
This is not very obvious from looking at the module page.
Also, the "release notes" link on the module page just links to the module page itself.
I suggest to start any documentation with a "big picture":
- 7.x-1.x was all about plugins
- In 7.x-2.x you can use either rules, or a custom module with hook_commerce_shipping_method_info(), hook_commerce_shipping_service_info(), and shipping rate callback.
Personally I much prefer custom modules to clicking around in rules.
http://www.drupalcommerce.org/user-guide/calculating-flat-rate-based-cus...
that's a lot of clicking :)
It would be great to have an equivalent of this guide using a custom rate callback.
Comments
Comment #1
donquixote commentedI should add, the commerce_shipping_example module in 2.x already shows a lot of stuff.
What it doesn't say is how to get the shipping address, based on which I want to calculate the rate.
I ended up with this:
Ok, I hope this issue is somewhat useful in improving the docs.
Comment #2
colanTo add to this, in the upgrade instructions, it doesn't mention that one can delete his or her "plugins" directory. Is this in fact the case?
Comment #3
colanI just ran through the process with some dd() calls, and confirmed that the plug-in implementation is no longer required in 2.x. It should be removed in favour of the hook implementation. The example module folder's plugin-in implementation was removed to reflect this, but I was using a pre-2.0 dev release which didn't have that commit yet.
@donquixote: Do you think the up-to-date example module is sufficient, or is further documentation necessary?
Comment #4
googletorp commentedThink this is done, otherwise you can reopen.