Easy-digital-downloads: Add delete option to View Order Details screen

Created on 17 Jan 2016  路  10Comments  路  Source: easydigitaldownloads/easy-digital-downloads

At the moment there is no way to delete a payment from the View Order Details screen. When needing to delete a payment, this is really annoying.

component-administration component-orders type-feature

Most helpful comment

There is a hook before and after:

  • edd_view_order_details_resend_receipt_before
  • edd_view_order_details_resend_receipt_after

All 10 comments

I'm not in love with the position. I feel like it should closer mimic the Post Edit screen where the Delete (Move to Trash on posts) is just to the left of the 'Update' with the primary button style.

The problem is, where to move that Resend Receipt to. @SDavisMedia @mindctrl @mintplugins would love some input here, screenshot of what the changes do:
screen shot 2016-04-11 at 10 16 42 pm

Normal Post Edit screen for reference (in my comment above)
screen shot 2016-04-11 at 10 16 59 pm

I don't like that placement either but it seems like the lesser of several evils. I don't like the link above the resend and save buttons. Below is a bit awkward, especially as a left-aligned link.

The only thing I'm really happy with is a dedicated postbox in the bottom right corner of the entire screen specifically for deleting the payment. I don't think it should be a very convenient action to take. My 2 cents.

That was exactly my struggle with this: where to put it or where to move Resend Receipt.

I wouldn't be opposed to a dedication box in the bottom.

Personally, I feel like "Resend Receipt" is out of context there - like it doesn't really belong. Whereas "Delete" would belong there because it's a similar action to saving a payment.

I could see a new metabox for Receipts being below like @pippinsplugins mentioned.

I think I prefer Resend Receipt being separate instead of Delete as well. That better follows core. Resend Receipt would need to be up top, not at the bottom like @SDavisMedia suggested for the delete link.

I agree. Didn't think you guys would want to move Resend Receipt to a dedicated box.

I'm all for Save Payment as a right aligned button, Delete Payment as a left aligned link, and Resent Receipt in its own box. :+1:

Proposal for final design:
screen shot 2016-04-14 at 12 37 50 pm

Looks fine to me. Would be cool to have a hook so that PDF invoices and others can put links there too maybe?

There is a hook before and after:

  • edd_view_order_details_resend_receipt_before
  • edd_view_order_details_resend_receipt_after

:+1: looks good.

I'm all for Save Payment as a right aligned button, Delete Payment as a left aligned link, and Resent Receipt in its own box.

Was this page helpful?
0 / 5 - 0 ratings