Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I cannot view orders in Store -> View orders page as a admin user. Please let me know why its happen. Its showing following error while trying to view orders,
"Symfony\Component\Routing\Exception\RouteNotFoundException: Route "admin/store/orders/{uc_order}/packages" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName()"
Please do the needful.
Comment | File | Size | Author |
---|---|---|---|
#71 | init.patch | 3.62 KB | TR |
| |||
#70 | op.patch | 2.32 KB | TR |
| |||
#69 | newtests.patch | 9.07 KB | TR |
| |||
#68 | protected.patch | 8.25 KB | TR |
| |||
#67 | protected.patch | 7.58 KB | TR |
|
Comments
Comment #2
longwaveDo you have the Shipping module enabled? This has not been fully ported yet and looks to be the cause of this issue.
Comment #3
TR CreditAttribution: TR commenteduc_shipping has not been ported to D8 yet.
Most stores don't need or use this module, it only does back-end fulfillment. Shipping quotes are done with uc_quote and don't need uc_shipping.
The order View does work without uc_shipping enabled.
If uc_shipping is important to you, please consider working on the port yourself and contributing a patch or sponsoring the development. We need to redesign the workflow of uc_shipping because it has always been very clumsy and overly complicated to use for the typical situation where you only have 1 box per order.
Comment #4
TR CreditAttribution: TR commentedBetter title.
Comment #5
Vinoth.m CreditAttribution: Vinoth.m commentedYeah, I need shipping module with UPS and payment with authorized .net. I am trying to fix it from my end. If anybody rewrite shipping module please share patches via this thread.
Comment #6
TR CreditAttribution: TR commentedI'm currently making a first pass at the port of uc_shipping to D8. It's now called uc_fulfillment. I will be using this issue as a patch testing issue until I get it to the point where it can be enabled and run without crashing a site.
I don't plan to do much in the way of redesigning at the moment - that' might come after it's ported.
Comment #7
TR CreditAttribution: TR commentedComment #8
TR CreditAttribution: TR commentedFirst attempt at porting - this moves most of the code out of .module and .admin.inc (all of the code in .admin.inc has been removed) and into Forms and Controlers. hook_menu() has been removed, routes have been added.
Comment #9
TR CreditAttribution: TR commentedI'm going to commit this chunk and set this issue back to needs work - this module still can't be enabled, it will take a few more iterations to find and fix all the D7 stuff still in there.
Comment #11
TR CreditAttribution: TR commentedMajor work, the module can now be enabled, and you can make packages and shipments from the tabs on the order view. It's going to stay "Needs work" and "not_yet_ported" until I've got everything working - I don't need bug reports at this stage.
Comment #13
TR CreditAttribution: TR commentedFirst pass at a set of tests for uc_fulfillment. This tests the process almost all the way to the end - I'm still working on finishing off the port. These tests work locally, but let's see how they fair in the CI environment. This will also check to see whether the proper operation of uc_fulfillment depends on changes to other parts of Ubercart that I've made locally but haven't committed yet ...
Comment #15
TR CreditAttribution: TR commentedAnother set of tests to check all the features of packaging.
Comment #17
TR CreditAttribution: TR commentedAgain...
Comment #21
TR CreditAttribution: TR commentedRemoved all uc_fulfillment_package_xxx and uc_fulfillment_shipment_xxx crud functions from .module and moved them into two classes, Package and Shipment. For now these are just normal classes, but I made them have the same method signatures (create, load, save, delete) as Entities because the goal is to next turn these into entities.
Packages and shipments were both treated as arrays and/or stdClass objects throughout the code, so I replaced those usages with the new classes. Fortunately I had written > 250 test cases - they were very helpful when making this conversion to objects to make sure everything still worked when I was done!
Comment #22
TR CreditAttribution: TR commentedWithout the patch to .info.yml, which is now already committed.
Comment #25
TR CreditAttribution: TR commentedBack to needs work. But you can now enable this module and play with it, and there are many working tests. Right now the problems remaining are:
Once these are made to work I still have to add some new tests to make sure they stay working.
Comment #26
TR CreditAttribution: TR commentedTest reverting a patch.
Comment #28
TR CreditAttribution: TR commentedAgain.
Comment #30
TR CreditAttribution: TR commentedAgain.
Comment #31
TR CreditAttribution: TR commentedComment #32
TR CreditAttribution: TR commentedReroll of some botched patches.
Comment #34
TR CreditAttribution: TR commentedComment #35
TR CreditAttribution: TR commentedComment #36
TR CreditAttribution: TR commentedRetry ed8383
Comment #38
TR CreditAttribution: TR commentedRetry 568ce
Comment #39
TR CreditAttribution: TR commentedRework 0b859
Comment #40
TR CreditAttribution: TR commentedRework 5dca1c
Comment #43
TR CreditAttribution: TR commentedRework ea6b8f
Comment #45
TR CreditAttribution: TR commentedRework 40a19
Comment #47
TR CreditAttribution: TR commentedComment #49
TR CreditAttribution: TR commentedComment #51
TR CreditAttribution: TR commentedComment #52
TR CreditAttribution: TR commentedComment #53
TR CreditAttribution: TR commentedComment #55
TR CreditAttribution: TR commentedMake shipment properties protected.
Comment #56
TR CreditAttribution: TR commentedComment #57
TR CreditAttribution: TR commenteduc_fulfillment is now ported and working.
There are still a few minor issue, and some changes I'd like to make under the hood which don't affect the UI, so I'll keep this issue open for testing patches for a little while longer.
Comment #58
TR CreditAttribution: TR commentedAdd package currency code and weight/weight units.
Comment #60
TR CreditAttribution: TR commentedUse Package setters/getters, protect properties.
Comment #63
TR CreditAttribution: TR commentedComment #64
TR CreditAttribution: TR commentedComment #65
TR CreditAttribution: TR commentedRemove db_ calls and use Package/Shipment API instead.
Comment #67
TR CreditAttribution: TR commentedComment #68
TR CreditAttribution: TR commentedSame, but with a new test.
Comment #69
TR CreditAttribution: TR commentedSome new tests for shipments.
Comment #70
TR CreditAttribution: TR commentedUse OrderProduct entity instead of {uc_order_products} table.
Comment #71
TR CreditAttribution: TR commentedInit Package variables, simplify save().
Comment #72
TR CreditAttribution: TR commentedThe module has been ported and working since #57. While there are still things I'd like to do to improve the code internally, these things won't affect anyone wanting to use this code. Marking this as fixed.