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.

CommentFileSizeAuthor
#71 init.patch3.62 KBTR
#70 op.patch2.32 KBTR
#69 newtests.patch9.07 KBTR
#68 protected.patch8.25 KBTR
#67 protected.patch7.58 KBTR
#65 api.patch12.45 KBTR
#64 address.patch2.57 KBTR
#63 acc-mut-prot.patch26.33 KBTR
#60 acc-mut-prot.patch26.58 KBTR
#58 currency.patch6.54 KBTR
#56 tests.patch8.43 KBTR
#55 protect.patch2.19 KBTR
#53 5dca1c-rework-2.patch2.46 KBTR
#51 quote-modifications.patch12.5 KBTR
#49 40a19plusea6b8.patch34.06 KBTR
#47 40a19-rework-2.patch28.14 KBTR
#45 40a19-rework.patch26.69 KBTR
#43 ea6b8f-rework.patch6.22 KBTR
#40 5dca1c-rework.patch2.3 KBTR
#39 0b859-rework.patch3.49 KBTR
#39 0b859-rework.patch3.49 KBTR
#38 568ce.patch16.84 KBTR
#36 ed8383.patch2.86 KBTR
#34 new-interface-2.patch12 KBTR
#32 new-interface.patch13.37 KBTR
#31 revert-recent-changes-3.patch77.68 KBTR
#30 revert-recent-changes-2.patch80.4 KBTR
#28 revert-recent-changes.patch57.38 KBTR
#26 test.revert.patch8.64 KBTR
#22 package-shipment-objects.patch40.24 KBTR
#21 package-shipment-objects.patch40.64 KBTR
#17 fulfillment-test-2.patch13.59 KBTR
#15 fulfillment-test-2.patch12.81 KBTR
#13 fulfillment-tests.patch9.31 KBTR
#8 port.patch124.5 KBTR
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Vinoth.m created an issue. See original summary.

longwave’s picture

Do you have the Shipping module enabled? This has not been fully ported yet and looks to be the cause of this issue.

TR’s picture

Title: Cannot view orders in Store View orders page » Port uc_shipping to D8
Version: 8.x-4.0-alpha1 » 8.x-4.x-dev
Component: Orders » Shipping (Fulfillment)
Category: Bug report » Task
Priority: Major » Normal
Status: Active » Postponed

uc_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.

TR’s picture

Title: Port uc_shipping to D8 » Rewrite uc_shipping for D8

Better title.

Vinoth.m’s picture

Yeah, 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.

TR’s picture

Component: Shipping (Fulfillment) » Fulfillment
Assigned: Unassigned » TR
Status: Postponed » Active

I'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.

TR’s picture

Status: Active » Needs review
FileSize
124.5 KB

First 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.

TR’s picture

Status: Needs review » Needs work

I'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.

  • TR committed ca8e615 on 8.x-4.x
    Issue #2622936 by TR: Rewrite uc_shipping for D8, part 1
    
TR’s picture

Major 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.

  • TR committed 3d2695e on 8.x-4.x
    Issue #2622936 by TR: Rewrite uc_shipping for D8, added local tasks and...
  • TR committed 992eb19 on 8.x-4.x
    Issue #2622936 by TR: Major overhaul of new package and new shipment...
  • TR committed b68b2d6 on 8.x-4.x
    Issue #2622936 by TR: Rewrite uc_shipping for D8, part 2
    
    Many changes...
TR’s picture

Status: Needs work » Needs review
FileSize
9.31 KB

First 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 ...

Status: Needs review » Needs work

The last submitted patch, 13: fulfillment-tests.patch, failed testing.

TR’s picture

Status: Needs work » Needs review
FileSize
12.81 KB

Another set of tests to check all the features of packaging.

Status: Needs review » Needs work

The last submitted patch, 15: fulfillment-test-2.patch, failed testing.

TR’s picture

Status: Needs work » Needs review
FileSize
13.59 KB

Again...

Status: Needs review » Needs work

The last submitted patch, 17: fulfillment-test-2.patch, failed testing.

The last submitted patch, 17: fulfillment-test-2.patch, failed testing.

  • TR committed 28f1855 on
    Issue #2622936 by TR: Tests of the fulfillment process.
    
  • TR committed 8e76822 on
    Issue #2622936 by TR: Tests of the packaging UI.
    
TR’s picture

Status: Needs work » Needs review
FileSize
40.64 KB

Removed 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!

TR’s picture

Without the patch to .info.yml, which is now already committed.

The last submitted patch, 21: package-shipment-objects.patch, failed testing.

  • TR committed c159b41 on
    Issue #2622936 by TR: Removed all uc_fulfillment_package_xxx and...
TR’s picture

Status: Needs review » Needs work

Back 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:

  • Address Ajax doesn't work on ShipmentEdit form / NewShipment form.
  • ShipmentEdit form doesn't find the correct values for addresses and a few other things.
  • Final submission of the shipment whitescreens, but the shipment is made and can be viewed.
  • Invoice and print tabs of the shipment whitescreen because the theme functions haven't been ported / still reference theme() etc.

Once these are made to work I still have to add some new tests to make sure they stay working.

TR’s picture

Status: Needs work » Needs review
FileSize
8.64 KB

Test reverting a patch.

Status: Needs review » Needs work

The last submitted patch, 26: test.revert.patch, failed testing.

TR’s picture

Status: Needs work » Needs review
FileSize
57.38 KB

Again.

Status: Needs review » Needs work

The last submitted patch, 28: revert-recent-changes.patch, failed testing.

TR’s picture

Status: Needs work » Needs review
FileSize
80.4 KB

Again.

TR’s picture

TR’s picture

Reroll of some botched patches.

Status: Needs review » Needs work

The last submitted patch, 32: new-interface.patch, failed testing.

TR’s picture

TR’s picture

Status: Needs work » Needs review
TR’s picture

Retry ed8383

Status: Needs review » Needs work

The last submitted patch, 36: ed8383.patch, failed testing.

TR’s picture

Status: Needs work » Needs review
FileSize
16.84 KB

Retry 568ce

TR’s picture

TR’s picture

Rework 5dca1c

Status: Needs review » Needs work

The last submitted patch, 40: 5dca1c-rework.patch, failed testing.

The last submitted patch, 40: 5dca1c-rework.patch, failed testing.

TR’s picture

Status: Needs work » Needs review
FileSize
6.22 KB

Rework ea6b8f

Status: Needs review » Needs work

The last submitted patch, 43: ea6b8f-rework.patch, failed testing.

TR’s picture

Status: Needs work » Needs review
FileSize
26.69 KB

Rework 40a19

Status: Needs review » Needs work

The last submitted patch, 45: 40a19-rework.patch, failed testing.

TR’s picture

Status: Needs work » Needs review
FileSize
28.14 KB

Status: Needs review » Needs work

The last submitted patch, 47: 40a19-rework-2.patch, failed testing.

TR’s picture

Status: Needs work » Needs review
FileSize
34.06 KB

Status: Needs review » Needs work

The last submitted patch, 49: 40a19plusea6b8.patch, failed testing.

TR’s picture

TR’s picture

Status: Needs work » Needs review
TR’s picture

Status: Needs review » Needs work

The last submitted patch, 53: 5dca1c-rework-2.patch, failed testing.

TR’s picture

Status: Needs work » Needs review
FileSize
2.19 KB

Make shipment properties protected.

TR’s picture

TR’s picture

Title: Rewrite uc_shipping for D8 » Port uc_shipping for D8

uc_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.

TR’s picture

Add package currency code and weight/weight units.

Status: Needs review » Needs work

The last submitted patch, 58: currency.patch, failed testing.

TR’s picture

Status: Needs work » Needs review
FileSize
26.58 KB

Use Package setters/getters, protect properties.

Status: Needs review » Needs work

The last submitted patch, 60: acc-mut-prot.patch, failed testing.

The last submitted patch, 60: acc-mut-prot.patch, failed testing.

TR’s picture

Status: Needs work » Needs review
FileSize
26.33 KB
TR’s picture

TR’s picture

FileSize
12.45 KB

Remove db_ calls and use Package/Shipment API instead.

Status: Needs review » Needs work

The last submitted patch, 65: api.patch, failed testing.

TR’s picture

Title: Port uc_shipping for D8 » Port uc_shipping to D8
Status: Needs work » Needs review
FileSize
7.58 KB
TR’s picture

Same, but with a new test.

TR’s picture

Some new tests for shipments.

TR’s picture

FileSize
2.32 KB

Use OrderProduct entity instead of {uc_order_products} table.

TR’s picture

Init Package variables, simplify save().

TR’s picture

Status: Needs review » Fixed

The 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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.