Showing Purchase Details on EDD Payment Table

On mobiles, Easy Digital Downloads displays very little information in the payments table (Downloads > Payment History). it shows only the order ID and must be clicked on to expand the full details. This makes searching for purchases tricky as you may end up with a table with many results and need to expand each row manually to find the one you're looking for.

To address this, I use the following PHP code (which you can add to your functions.php file) to display extra info such as the email, amount, date, customer and status within the table. This makes locating purchases easier, and then expanding as before gives the full details / actions that can be taken on the target purchase.

add_action('admin_head', 'myprefix_show_payment_table_details');

function myprefix_show_payment_table_details() { ?>
	<style>
    @media screen and (max-width: 782px) {

		/* Show extra columns */
		.download_page_edd-payment-history .downloads tr:not(.is-expanded) td.column-email,
		.download_page_edd-payment-history .downloads tr:not(.is-expanded) td.column-date,
		.download_page_edd-payment-history .downloads tr:not(.is-expanded) td.column-customer,
		.download_page_edd-payment-history .downloads tr:not(.is-expanded) td.column-status { 
			display: block !important; 
		}

		/* Hide the labels */
		.download_page_edd-payment-history .downloads tr:not(.is-expanded) td:before { 
			content: '' !important; 
		}

		/* Hide the row actions */
		.download_page_edd-payment-history .downloads tr:not(.is-expanded) td.column-email .row-actions {
			display: none;
		}
	}
	</style>
	<?php
}

0 Comments

Submit a Comment

Comments are manually moderated and approved at the time they are answered. A preview is shown while pending but may disappear if your are cookies cleared - don't worry though, the comment is still in the queue.

Your email address will not be published. Required fields are marked *.

We may earn a commission when you visit links on our website.