Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Invoice Payments showing as Incomplete | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Invoice Payments showing as Incomplete

Invoice Payments showing as Incomplete

Posted: September 20, 2013 at 11:43 am

Viewing 2 reply threads


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

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!

Viewing 2 reply threads

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 - Staging Server