Support

Home Forums Event Espresso Premium Invoice Payments showing as Incomplete

Invoice Payments showing as Incomplete

Posted: September 20, 2013 at 11:43 am


thinkbiglearnsmart

September 20, 2013 at 11:43 am

Invoice payments are supposed to be set to “Pending” with a yellow icon, however, now they’re being set to “Incomplete” with red icon. It looks like this was last working before the 3.1.35.P update.

Check and PO payments are working properly.

WP 3.6.1
EE 3.1.35.P


Josh

  • Support Staff

September 20, 2013 at 12:46 pm

Hi there,

You can make the invoice option automatically set the payment status to pending when the invoice is downloaded (which was what it did prior to 3.1.35.P) by uncommenting in the lines of code starting on line 65 of /event-espresso/gateways/invoice/template.php. It will look like this:

if ($payment_status != 'Completed') {
	$payment_status = 'Pending';
	$txn_type = 'INV';
	$payment_date = date('Y-m-d-H:i:s');

//Added by Imon
	if (count($registration_ids) > 0 && $admin == false) {
		foreach ($registration_ids as $reg_id) {
			$sql = "UPDATE " . EVENTS_ATTENDEE_TABLE . " SET payment_status = '" . $payment_status . "', txn_type = '" . $txn_type . "', payment_date ='" . $payment_date . "'  WHERE registration_id ='" . $reg_id['registration_id'] . "' AND txn_type ='' ";
			$wpdb->query($sql);
		}
	}
}

If you copy over the /invoice folder to /wp-content/uploads/espresso/gateways these changes will stay intact after an update.


thinkbiglearnsmart

September 20, 2013 at 1:43 pm

Okay, that works. Thanks!

The support post ‘Invoice Payments showing as Incomplete’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso