Support

Home Forums Event Espresso Premium Custom Invoice

Custom Invoice

Posted: December 6, 2012 at 4:09 pm


Ben

December 6, 2012 at 4:09 pm

On the invoice template, how do I remove ‘Å’ that is appearing before ‘£70.00’?
How do I add the logo image?
Why would you want a ‘Pay online’ link if you had already paid?


Dean

December 7, 2012 at 7:09 am

Hi,

Regarding the weird A, this is an encoding issue. One way around it is to edit one of the gateway files: event-espresso/gateways/invoice/functions.pdf.php
On line 6 change it to

$currency_sign = £ //html_entity_decode( $org_options[ 'currency_symbol' ], ENT_QUOTES, 'UTF-8' );

This isnt an ideal fix we have had lots of trouble with this aspect and we are looking to change how the invoice template works for 3.2

Logos can be added via the Invoice settings in the Payment Settings page.

The pay online link is there for those people that change their mind and want to pay online, or for when you need to send the invoice as a payment reminder. It can be removed by editing template.php in the same folder, line 213 (right at the bottom) change it to

//$pdf->Cell(200,20,'Pay Online',0,1,'C',0,$payment_link);//Set payment link

And you may want to edit the invoice settings again to remove mention of the link.


Ben

December 8, 2012 at 5:17 am

Thanks Dean,

I’m getting a syntax error on the code fix for the ‘Å’ you sent me, am I missing something?

Logo – Done – A note needs to be added to say .jpg files only, as my png didnt work because of an alpha channel error.

Regarding the pay online link. The link takes me to the ‘Thank You’ page, with the ‘amount paid’ (have removed ‘/owed’) as COMPLETED. Why is it not showing ‘INCOMPLETE’? This is also on the list of attendees as all completed, even though i’ve tested with stopping half way through the process for some of them, and MR X will still as ‘COMPLETED’. The only way to tell is that ‘Paypal’ is not next to the COMPLETED status. This is confusing for my client.
There is no link to make a payment, should that appear if the status was correct as ‘INCOMPLETE’?


Dean

December 10, 2012 at 12:39 am

Opps my bad, missed a semicolon

$currency_sign = £; //html_entity_decode( $org_options[ 'currency_symbol' ], ENT_QUOTES, 'UTF-8' );

Regarding payment, have you checked you general settings to make sure that the default payment status is set to incomplete if the user has not paid? Also check the individual event as well as this can be set individually.

Yes the link will take you to a page with a message saying it is incomplete. Make sure that in the general settings the option “Show payment options for “Pending Payments” on the Payment Overview page?” is set to yes, and then it will show payment options on that page as well.


Ben

December 10, 2012 at 1:24 am

Thanks Dean,

Default payment status is Incomplete, and individual event.
Show payment options on pending payments is also set to yes.

Any ideas?


Dean

December 10, 2012 at 5:42 am

Hi,

Are you running the latest Event Espresso?


Ben

December 10, 2012 at 6:04 am

No, just the version before.

Have there been changes made to the new version to resolve this issue?

I will upgrade if need be, otherwise I need to make sure my other plugins have been updated before making the wordpress upgrade along with the EE upgrade.

Thanks dean.


Dean

December 10, 2012 at 6:24 am

Hi,

Though you aren’t far behind I would advise you to update. I can’t see anything specific about your issue, but that does not mean an update wont resolve it and if we know you are on the latest version it helps us bug track more efficiently.


Ben

December 10, 2012 at 2:49 pm

Hi Dean,

I’ve upgraded 4 EE plugins. I’m still on WP 3.4.2, as 3.5 hasn’t been released yet.

Sure enough, I’m still getting all Incomplete registrations as COMPLETED. Why?

Also, on my main event page, there appears to be a ‘4’ in the top left corner that’s appeared for some reason?

Thanks.


Dean

December 11, 2012 at 12:08 am

Is it possible to get your login details in order to look into this?

If so, please send them via https://eventespresso.com/contact/

Choose the “I am sending login info as requested” option and fill out the form

Please make sure you add the forum post link to aid us in case another team member picks up the email.

NOTE: login details need to be Admin level.


Dean

December 11, 2012 at 4:02 am

Hi,

OK, so I deactivated and reactivated the plugin and resaved the options, just to make sure everything was set right. I did two tests, went to paypal and cancelled. Both came up as marked incomplete, so that should be fixed.

The number issue should have been fixed, have you updated your templates after updating? If not you can rename the template folder in Template Settings in order to revert to the new default templates.

If the issue persists let me know.


Ben

December 11, 2012 at 10:40 am

Hi Dean,

I’ve done 3 tests,
1 – get to paypal, then hit the back button several times. Shows complete, and then even after edit the cart and deleting my choice, still showing complete.
2 – get to paypal, and hit Cancel, still showing as complete.

I’ve deleted the temp folder files for – event_list & event_list_display.
3- still showing as complete with using no templates.

The number issue ‘4’ I think is referring to the event_id as it was the fourth attempt of setting up the event, where is the code to remove it?

Thanks.


Dean

December 12, 2012 at 3:49 am

Hi

OK I see the issue.

If the user fails to select a price on the cart screen so the total shows nothing and just clicks forward to fill out their details, for whatever reason it is marking the payment as complete.

If they select a payment and it shows in the total then the process works correctly.

All your tests seem to be using the 2 pence/cent option which is the first selected so there is no need to click it again and make the totals show.

I will have to raise a ticket with the devs on this to find out why the initial selection isnt being marked in the total.

Regarding the number 4 – yes it is the event id. Can you rename your uploads/espresso folder temporarily to see if it is being caused by the registration_page_display.php. As mentioned this should have been fixed, so I can only assume it is due to an old template file.


Josh

  • Support Staff

December 12, 2012 at 8:54 am

Hi there,

Dean is spot on about the event ID being printed on the registration page being caused by an out of date template file in /wp-content/uploads/espresso/templates. This may also be causing the other issue that you’re having with incomplete payments being marked as complete. Can you update the templates in /wp-content/uploads/espresso/templates so that they are in sync with the current version, or remove them if you don’t have any customizations? Renaming them will also prevent them from loading.


Ben

December 12, 2012 at 2:32 pm

Hi Dean/Josh,

I’ve renamed the templates folder, and yes, it removes the ‘4’ and puts ‘Description’ back in the page. Where is this code again to remove it please?

However, the problem is still occurring with an automatic level being selected, and the scenario that a client doesn’t pay will appear as completed in the attendee list?

Thanks.


Josh

  • Support Staff

December 12, 2012 at 7:07 pm

Hi there,

You can use this as a temporary workaround while the dev team looks into this:

If set “Allow group registrations” to yes, and set the maximum number of registrants per group to 1 and it will force a selection on the cart page.


Dean

December 12, 2012 at 11:44 pm

Where is this code again to remove it please?

There is no specific code for this, due to changes in the plugin the templates have been changed (see the changelog and blog) and as such old template versions are causing this event ID problem.

You will need to port any modifications over to the new template style.


Ben

December 13, 2012 at 1:52 pm

Thanks Dean,

I was meaning in reference to “Description:” which appears above my ‘description’ and wanted to remove the word “Description:”. I’ve found it now on the registration_page_display.php and removed it.

The code for removing “Å” on the invoice is still not working. Any more ideas?

Thanks Josh, that seems to have done the trick for the time being, I could even say that its maybe an improvement to force the user to select ‘1’ for a ticket.

Bar the Å, I do believe I can give the site the green light go live now to my client, following the payment issues now resolved.
Thanks for your help.


Dean

December 13, 2012 at 11:33 pm

Hello,

The code works fine my end, but it could well be the encoding on your site/database. If it is other than UTF-8 then it wont work. You can change the encoding in the site and/or database.

If you would like I can take a look at the site but you will need to provide login details.

If so, please send them via https://eventespresso.com/contact/

Choose the “I am sending login info as requested” option and fill out the form

Please make sure you add the forum post link to aid us in case another team member picks up the email.

NOTE: login details need to be Admin level.


Ben

December 14, 2012 at 12:25 am

Thanks Dean, details sent.


Dean

December 14, 2012 at 2:05 am

Hi,

I tried to have a look at the database/files, but couldnt

I need 2 things. 1 – permission to change the theme for a while (being UK based I didnt want to interrupt the site during operational hours) and 2 the correct FTP details, it wont let me log in.


Ben

December 14, 2012 at 12:29 pm

Apologies Dean,

I’ve resent the details, and feel free to go ahead and change theme for a short period of time.

Thanks.


Dean

December 17, 2012 at 12:35 am

Hi,

I am going to have to raise a ticket on this and speak with the devs. Looking at your database and files compared to mine they look the same (structure wise) so I can’t see why my code change works for me but not you.

The support post ‘Custom Invoice’ 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