Showing Purchase Details on EDD Payment Table

This post may contain referral links which may earn a commission for this site

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
}

Hundreds of new features for Divi
in one easy-to-use plugin

0 Comments

Submit a Comment

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