The JavaScript on the order edit page has not yet been ported to D8 and doesn't work.

I have rolled a patch to fix this, but I am holding it back until #2573299: Convert order panes to plugins gets committed because I don't want to make changes that break the patch in that issue.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

TR created an issue. See original summary.

TR’s picture

Status: Active » Needs review
FileSize
28.83 KB

This involves a lot more code than I thought, so I'm going to do it incrementally. First step is to take the JavaScript callback functions, which are all in uc_order.admin.inc, and move them into their own controllers/forms and add routes for the callbacks. uc_order.admin.inc and hook_menu() can now be removed.

Status: Needs review » Needs work

The last submitted patch, 2: order-js-1.patch, failed testing.

TR’s picture

That's a branch fail from commit 2919ba1c8d7

TR’s picture

Status: Needs work » Needs review
FileSize
33.06 KB

Tests are running again, and this patch does more than the previous. Let's try it ...

  • TR committed c322d24 on 8.x-4.x
    Issue #2655586 by TR: Fix Order edit JS, part 1
    
TR’s picture

And here's the first pass at the JavaScript. This fixes the actions on the copy billing to shipping, copy shipping to billing, search for a customer, and create a new customer icons. This is still a work in progress. The address book icons and the customer search/create subform buttons are still broken.

TR’s picture

A couple of more changes, so one more test before I commit this ...

  • TR committed a88031c on 8.x-4.x
    Issue #2655586 by TR: Fix Order edit JS, part 2
    
TR’s picture

More work. The only thing that doesn't work now is the submit/close buttons on the JS-loaded form elements - I know the reason for this, that will be the next fix.

  • TR committed 6677bd5 on 8.x-4.x
    Issue #2655586 by TR: Fix Order edit JS, part 3
    
TR’s picture

Replace <div> with #type 'container'.

Status: Needs review » Needs work

The last submitted patch, 12: container.patch, failed testing.

The last submitted patch, 12: container.patch, failed testing.

TR’s picture

Status: Needs work » Needs review
FileSize
758 bytes
TR’s picture

TR’s picture

TR’s picture

The last submitted patch, 17: pane-container-customer.patch, failed testing.

kiwad’s picture

Status: Needs review » Needs work

Few failed tests... what needs to be reviewed ? Is this task still relevant ? I've look for instance at uc_quote.module and what's in the patch #18 already seems to be applied

TR’s picture

Assigned: TR » Unassigned

This is just a patch testing issue. Everything above has been committed in some form, but the task of rewriting the order edit JS is not complete. It's a 'task' not a bug or a feature request because this is part of the porting of the order admin from D7 to D8 - there's lots of known issues because it's an incomplete task.

I haven't worked on it in a while, so feel free to jump in and finish it off if you want.

Cayenne’s picture

Will this code, when complete, allow us to edit and add order products to a given award?