Support

Home Forums Event Espresso Premium Pending/Incomplete Events

Pending/Incomplete Events

Posted: September 11, 2014 at 6:24 pm

Viewing 45 reply threads


Michelle

September 11, 2014 at 6:24 pm

I am beyond frustrated at this point with how Event Espresso works. I have spent many hours and do not wish to ditch it yet so this is my last attempt.

My client is running safety courses and clients either pay with Paypal or by invoice.

When paying by invoice they do not receive an email by invoice because of the settings. If I set it up where emails are sent then incomplete registrations (if they choose Paypal but don’t complete it they still get an email confirming).

The next problem is that incomplete registrations are still counting in attendee list. So when someone decides they want to register, pick Paypal then decide to not continue, they still end up in the attendee list. When I change the setting to be pending or incomplete then people paying by invoice do not get counted in the list. I would like the following:
Pay by invoice – email notification and counted in attendee list.
Pay by Paypal (payment confirmed not selected and payment not completed) – email notification and counted in attendee list.

Something more sophisticated needs to be done with this system when paying by invoice or Paypal. It shouldn’t be this complicated. I have all the latest versions of the plugins.

Please help or I may look at other options. I do not want to as I do like Event Espresso for my other client.

Thanks!


Sidney Harrell

September 11, 2014 at 8:54 pm

I have a snippet of code in my gists that will email the attendee the confirmation when the invoice finialize link is clicked: https://gist.github.com/sidharrell/8652848. In that gist you will also see this line:

$payment_data['payment_status'] = 'Pending';

You could change that to Completed. People with incomplete paypal payments should be statused to Pending.


Michelle

September 17, 2014 at 10:56 am

Thanks for the code Sidney, it works but now there are 2 notification emails being sent to both the admin person and the person who registered, now what?


Josh

  • Support Staff

September 17, 2014 at 4:17 pm

Hi Michelle,

Can you try commenting out the code that sends like the additional email:

	/*
	static $sent = false;
	if (!$sent) {
			event_espresso_email_confirmations(array('session_id' => $payment_data['attendee_session'], 'send_admin_email' => 'true', 'send_attendee_email' => 'true'));
			$sent = true;
	}*/


Michelle

September 18, 2014 at 3:32 pm

Where would I find that code?? I don’t want to mess it up. Thanks.


Josh

  • Support Staff

September 18, 2014 at 5:24 pm

It’s in the code that Sidney showed you to add, specifically the very first lines of the espresso_process_invoice() function.

Here’s a fork of Sidney’s gist:

https://gist.github.com/joshfeck/201142511a36d51b152f


Michelle

September 18, 2014 at 5:38 pm

hi there, sorry for being so dumb, should have checked first duh.

I have commented it out and actually copied exactly what was in gist and now I get no emails πŸ™


Josh

  • Support Staff

September 18, 2014 at 5:49 pm

my gist has this:

$payment_data['payment_status'] = 'Pending';

does your’s?

If so, you’ll want to change it to:

$payment_data['payment_status'] = 'Completed';


Michelle

September 18, 2014 at 5:54 pm

Ok, now I get two email but they aren’t duplicates. I get this email for choosing invoice, it thanks me for my payment, they haven’t paid yet so this is now wrong.

***This Is An Automated Response***
Thank You michelle
We have just received a payment in the amount of $73.50 for your registration to BABYSITTERS.
Transaction ID: 5qltcn62ekq013lh415ctdecq3-541b6c8adf2661.792


Josh

  • Support Staff

September 19, 2014 at 7:31 am

Hi Michelle,

This is because payment confirmation emails are set to be sent in Event Espresso > General Settings. Will it work out for your client if payment confirmation emails do not get sent out? If so, you can change the send payment confirmation email setting to No.

They’ll still get the registration confirmation email when the payment confirmation email is set to No.


Michelle

September 19, 2014 at 10:57 am

Great, I get the right emails now! BUT the invoice that is produced for an invoice payment shows that it has been paid when in fact it has not. Before our changes, the invoice said amount due was still owing. We are so close!

thanks.


Michelle

September 19, 2014 at 11:01 am

Great, I get the right emails now! BUT the invoice that is produced for an invoice payment shows that it has been paid when in fact it has not. Before our changes, the invoice said amount due was still owing. We are so close! I need the pdf invoice to say amount owing like it was before.

thanks.


Josh

  • Support Staff

September 19, 2014 at 11:22 am

Hi Michelle,

Thanks for working with us on this. It’s kind of a tricky customization, but I agree with you that we are close. I’m looking into a few options right now that I think might work.

Can you check something real quick? On the page where you complete the registration after selecting the invoice, there’s a link to download the invoice. When you click that link and download the invoice there, is the amount owed correct there?

If you can confirm whether that’s the case that will help me come up with an option you can use.


Michelle

September 19, 2014 at 11:50 am

Ok, the link on the webpage is correct with the amount owing. I did add the shortcode to the email message. Now, while I have you guys familiar,I do want to take away the step where you can download before confirming, I would like that in one step where they confirm and then get details where they download as well as email confirmation. I know I’m asking a lot so thanks for your awesome help.


Josh

  • Support Staff

September 19, 2014 at 2:59 pm

Hi Michelle,

I’m not sure I understand what you are asking for here. Are you looking to remove where it says “Download PDF Invoice” and the link that appears on the page that appears after selecting the Invoice option?

If so, that’s on line 56 of the gateways/invoice/invoice_vars.php file. You can remove that line of code and it will no longer display a link there.


Michelle

September 29, 2014 at 6:31 pm

Hi there, sorry for the delay in replying. I have removed the line of code with the Download invoice so that works better now, thanks. But the amount showing in the Download Invoice link in the email shows the amount owing as $0.00 when it should still the amount of the class owing as it’s an invoice. I added the shortcode [invoice_link] in the Default Registration Confirmation Email.

Also, I would like to remove the Attention box and ‘Complete your Registration’ step if possible. My client does not like that step. If I cannot remove it can I change the wording so it’s more simple?


Lorenzo Orlando Caum

  • Support Staff

September 29, 2014 at 8:35 pm

Hi Michelle,

Could you share a link to an event so we can share feedback on your new question?

If you do not want to share this link here in our support forums then please email the link to the email address below and also include a link to this support post.

support [at] eventespresso.com

Thanks!


Lorenzo


Michelle

September 29, 2014 at 8:42 pm

Hello, here is the link to the event. Please use the class on October 1st if you are testing as the notifications will go to me and not the client.

redacted – loc

THANKS!


Lorenzo Orlando Caum

  • Support Staff

September 29, 2014 at 10:32 pm

Hi,

I believe you are referring to this notice:

http://cl.ly/image/2h30233g0e3n

That link needs to be clicked to finish up the registration.

Try this gettext filter in your child theme’s functions.php file or a site specific plugin:

function mycustom_filter_gettext_invoice_messaging( $translated, $original, $domain ) {
 
    // This is an array of original strings
    // and what they should be replaced with
    $strings = array(
        '
				If you wish to pay by invoice, then please make note of the information above, and click to 				' => 'Click the link below to finish your registration!'
    );
 
    // See if the current string is in the $strings array
    // If so, replace its translation
    if ( isset( $strings[$original] ) ) {
        // This accomplishes the same thing as __()
        // but without running it through the filter again
        $translations = get_translations_for_domain( $domain );
        $translated = $translations->translate( $strings[$original] );
    }
 
    return $translated;
}
 
add_filter( 'gettext', 'mycustom_filter_gettext_invoice_messaging', 10, 3 );


Lorenzo


Michelle

September 30, 2014 at 8:56 am

That seems a bit too complicated for me to change. We should be able to easily change the message, just saying.

Could you please address the amount showing on the invoice? I’ve stated the issue twice without resolve yet and my client is pushing for a fix. Thanks!!!!


Josh

  • Support Staff

October 1, 2014 at 11:11 am

Hi Michelle,

It’s standard practice to use a translation function to change text. The alternative is to directly edit the file, which you’re also welcome to change the text there as well. You’ll find the message in the same file you edited before (gateways/invoice/invoice_vars.php). Please do not remove the button or Complete registration step because removing this will cause new issues for you.

I’m afraid the issue you’re seeing with the incorrect Invoice totals is caused by the customizations made so far. I can look into this further to see if there’s a way to send out registration confirmations before marking the Invoice payment as complete (which is what you have set right now).


Josh

  • Support Staff

October 1, 2014 at 11:26 am

Hi Michelle,

Here’s a link to a revised version of the invoice file customizations that should make it do what you want it to do:

https://gist.github.com/joshfeck/9ee0f939c4290f0950f8


Michelle

October 2, 2014 at 8:46 am

Hi Josh,

I have made the code changes for the amount on the invoice to show properly and it does!! thanks.

BUT… now I’m getting duplicate emails again πŸ™ I made the above changes that was given to me to fix this issue (first page) but when I did that, I didn’t get any emails at all.

Sooooooo close!!


Josh

  • Support Staff

October 2, 2014 at 10:39 am

Hi Michelle,

Can you let me know what you have set in Event Espresso > General Settings under Email Settings?


Michelle

October 2, 2014 at 10:43 am

It sends two emails no matter what the setting is unfortunately.


Josh

  • Support Staff

October 2, 2014 at 10:48 am

Hi Michelle,

Please let me know which settings you intend on using so I can help you find a solution.


Michelle

October 2, 2014 at 10:52 am

I do want payment emails and had it setup properly (see past comments). I was given code to have only one email sent but the latest code changes you gave me wiped out that change and we regressed back to two emails. When I commented out the code that was given from before, I ended up with no emails. Perhaps see the first page comments to see where I’m coming from.

I would like to have an email sent when choosing invoice, within that email it has the download invoice link with the amount showing as unpaid.

For payments with Paypal I want an email confirmation with payment details.

I do believe we have the emails setup properly but I’m getting duplicates πŸ™


Josh

  • Support Staff

October 2, 2014 at 11:17 am

Hi Michelle,

Before I can suggest a solution, I need to know exactly what you have set in the Event Espresso > General Settings > Email Settings. Here’s what I have set up on my site:

Send payment confirmation emails? > No.

Send registration confirmation emails before payment is received? No.

Can you check the same settings and let me what you have set for these? A simple Yes or No for #1 and Yes or No for #2 will do.


Michelle

October 2, 2014 at 1:19 pm

Send payment confirmation emails? Yes
Send registration confirmation emails before payment is received? No

thanks!!!


Josh

  • Support Staff

October 3, 2014 at 1:17 pm

Hi Michelle,

Thank you for your patience with us on this. Sidney and I spent quite a bit of time looking into the double email issue. It turns he didn’t get double emails with the same the code modifications.

Anyway, I was able to come up with a solution that allows for sending the Invoice out after completing the registration that doesn’t get fired twice. Here’s how you can set up this solution:

1) Remove the customized code from the invoice folder that was originally suggested. Specifically the invoice_ipn.php file and the added code in invoice/init.php in the “// This is for the thank you page” section.

2) Add the code from this gist into your theme’s functions.php file or into a custom snippet plugin (recommended)

https://gist.github.com/joshfeck/ca50d48704103f566107

3) Open up the Thank You page in the WordPress editor, and add the [espresso_invoice_message] shortcode to the page after the [ESPRESSO_PAYMENTS] shortcode.

3b) You can also change the wording “An email notification with an invoice link has been sent” that’s in the shortcode function that gets copied to your custom functions file.


Michelle

October 8, 2014 at 10:07 am

I have tried to implement this code, please realize I am not a php developer. I did try both methods and for adding the code in the theme php files resulted in white pages. I currently have the code in the plugin, in the php widget and cannot tell if it is working or not.

Right now, there is only one email that is sent but the invoice amount is showing as paid, basically back to square one.

Please let me know if you would like the login information to see if I have done this properly. Also, the [espresso_invoice_message] is just showing as text on the page, it’s not being recognized.

Thanks.


Josh

  • Support Staff

October 8, 2014 at 10:37 am

Hi Michelle,

If you can send FTP credentials via our secure form and let us know which files you modified and where they are located, we can verify whether the modifications were correctly made or not.

If that works for you, please send FTP credentials via the contact form on this page:

https://eventespresso.com/send-login-details/


Michelle

October 8, 2014 at 1:51 pm

If anyone is testing please use the BABYSITTERS course on October 25 so the client doesn’t get notified πŸ™‚

thanks!


Josh

  • Support Staff

October 8, 2014 at 2:48 pm

Hi Michelle,

I’m afraid the code added into the PHP widget is not going to execute because being in the widget, it’s too late. The code needs to run before the widgets get displayed. Can you disable the PHP widget code?


Josh

  • Support Staff

October 8, 2014 at 2:56 pm

Hi Michelle,

The reason for the issues you’re seeing is because you missed doing step 1:

1) Remove the customized code from the invoice folder that was originally suggested. Specifically the invoice_ipn.php file and the added code in invoice/init.php in the β€œ// This is for the thank you page” section.

When I checked the code was still there.


Josh

  • Support Staff

October 8, 2014 at 3:18 pm

Hi Michelle,

I went through and fixed what I found that was done incorrectly. The shortcode wasn’t typed correctly, the PHP code should not have been added to a sidebar widget (because it’s too late to run from there), and the original code modifications were still in place.

I fixed the above, and added a new plugin to the site and its name starts with “Site plugin for”. I’m pretty sure you’ll find that it does what your client wants done.


Michelle

October 8, 2014 at 3:44 pm

AWESOME!!! It works the way I want Josh πŸ™‚

There’s one little thing though, when I open up the invoice pdf and it says PAY ONLINE at the bottom, when I click the link it takes me to the Thank You page with the payment confirmation, there’s no link for the user to pay. Is there a way to fix it or to remove it altogether?

Thank you guys so very much for helping me with this, I am more than impressed with your support πŸ™‚


Josh

  • Support Staff

October 8, 2014 at 3:55 pm

Hi Michelle,

You can enable the PayPal button on the Pay Online page by going to Event Espresso > General Settings, then scroll down to Advanced Features. There you’ll set the Show payment options for “Pending Payments” on the Payment Overview page? setting to Yes, then save.


Michelle

October 8, 2014 at 4:05 pm

I did have that setting but it shows on the page after the confirm and it’s confusing to have the invoice payment option again, my client wanted it gone. Is there a way to remove it from the PDF?


Josh

  • Support Staff

October 8, 2014 at 4:21 pm

Hi Michelle,

The answer to your question is in this thread:

https://eventespresso.com/topic/trying-to-remove-auto-generated-invoice-pay-online-tag/#post-68538


Josh

  • Support Staff

October 8, 2014 at 4:21 pm

Hi Michelle,

The answer to your question is in this thread:

https://eventespresso.com/topic/trying-to-remove-auto-generated-invoice-pay-online-tag/#post-68538


Michelle

October 8, 2014 at 4:43 pm

Josh, I followed the exact instructions in the post and when I click the download pdf in the email I get a black page, no pdf πŸ™


Josh

  • Support Staff

October 8, 2014 at 4:53 pm

Hi Michelle,

Can you try again? It’s one line of code you’ll be removing. Removing any more or less may cause the blank page if you’re not careful.


Michelle

October 8, 2014 at 4:55 pm

the bottom part of my code looks like this:

//Create a payment link
$payment_link = home_url() . “/?page_id=” . $org_options[‘return_url’] . “&r_id=” . $registration_id;

$pdf->SetFont(‘Arial’, ‘BU’, 20);

$pdf->Output(‘Invoice_’ . $attendee_id . ‘_’ . $event_identifier . ‘.pdf’, ‘D’);
exit;

I removed one line and copied the file to the uploads.


Josh

  • Support Staff

October 8, 2014 at 5:05 pm

Oh no. You need to copy the entire /invoice folder over to /wp-content/uploads/espresso/gateways.


Michelle

October 8, 2014 at 5:15 pm

Ok it works now…. BUT, the instructions didn’t say the entire folder, it said the modified template haha πŸ˜‰

Looks like we finally have resolved this issue. I will be checking with my client tomorrow to make sure all is good.

Thanks again so very much!

Viewing 45 reply threads

The support post ‘Pending/Incomplete Events’ 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