Drupal 6 offers a feature where one can drag table rows to rearrange weight column values in that row. Ubercart 2 has several tables with weight columns, but none of them are draggable - yet. Let's fix this.

I successfully implemented this feature in a module for a client a while back. I can't recall how to do it off the top of my head, and I remember it was pretty difficult to wrap my head around how to get it to work at first, but it's possible. So if no one else more skilled is willing, I'll volunteer to hack together and submit the patches.

First, let's make a list of the tables in Ubercart which could use this feature, and their locations. I'll start the list in the first comment below, because comments are editable.

Comments

Garrett Albright’s picture

  • Cart panes - admin/store/settings/cart/edit/panes
  • Checkout panes - admin/store/settings/checkout/edit/panes
  • Address fields - admin/store/settings/checkout/edit/fields (This list is not currently weighted, but maybe it should be? Many nations use these fields in different orders in addresses.)
  • Order panes - admin/store/settings/orders/edit/panes (four lists on this page)
  • Payment methods - admin/store/settings/payment/edit/methods
  • Product fields - admin/store/settings/products/edit/fields
  • Quote methods - admin/store/settings/quotes/methods
  • Tax rates and settings - admin/store/settings/quotes/methods
rszrama’s picture

Status: Active » Postponed

Definitely needs to happen, but I'm going to postpone it until we open up development on 3.x. Then I'd love to have you own this and knock it out. : )

longwave’s picture

One problem I can think of with reordering the address fields is that the state/zone dropdown's content depends on the selected value of the country dropdown, so placing state/zone before country may not be very intuitive. International address display formats are handled by per-country CIF files anyway, this would only affect the field order in the checkout.

TR’s picture

Version: 6.x-2.0-rc1 » 6.x-2.x-dev
Status: Postponed » Active

This was postponed because it was too big a change to make between the 2.0 release candidate and 2.0 final. But it should have been re-opened as soon as Ubercart 2.0 final was released ...

longwave’s picture

This has mostly been done in 7.x now. Commits for reference and a possible backport:

Cart, checkout, order panes: http://drupalcode.org/project/ubercart.git/commit/e1ace1e
Payment methods: http://drupalcode.org/project/ubercart.git/commit/b98ccac
Shipping quote methods: http://drupalcode.org/project/ubercart.git/commit/0336fc0

longwave’s picture

Status: Active » Patch (to be ported)
TR’s picture

Backported draggable table rows for Cart, checkout, order panes: http://drupalcode.org/project/ubercart.git/commit/451e26a
Backported draggable table rows for Shipping quote methods: http://drupalcode.org/project/ubercart.git/commit/41c01f5

I didn't backport the payment methods settings, because that involved a lot of other structural changes to the form in addition to the draggable table rows.

longwave’s picture

Status: Patch (to be ported) » Fixed

I backported just the draggable rows part of the payment methods list, so I think this can be closed now.

Status: Fixed » Closed (fixed)

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