Support

Home Forums Event Espresso Premium Check Gateway info not showing after upgrade

Check Gateway info not showing after upgrade

Posted: April 23, 2013 at 10:34 pm


lhammond

April 23, 2013 at 10:34 pm

I just upgraded to the latest WordPress version and upgraded Event Espresso from 3.1.22.2.P to 3.1.31.1.P and I cannot get my check gateway information to display in the checkout process.  I tried deactivating and reactivating the gateway, changing the text in the gateway and saving the settings, and removing my custom templates completely from the uploads/espresso/gateways folder.

The PayPal gateway is showing.  For now I have modified gateway_display.php to include my hard-coded check payment instructions!  What else can I do to get the database-driven check information to show up again?

Thanks for your help.


Dean

April 24, 2013 at 5:46 am

Hi,

What site is this on, as the one listed in your account is running 3.1.29.?

Have you tried de and reactivating the whole plugin? Im wondering whether it just didnt install correctly.


lhammond

April 24, 2013 at 7:15 am

It is on http://www.compassclasses.com

I tried de and reactivating the whole plugin, and I’m still only seeing my hard-coded work around.

I deleted the old version of EE before upgrading and I only put back the customized template files I re-updated from the most recent version of the core file.

Other ideas?


lhammond

April 24, 2013 at 7:33 am

Also, I thought maybe there was someplace in the database that was referring to the old version, so I did a search for the string 3.1.22 in the database, and found a couple of pages where I was referencing a style sheet in an old location, but there’s also some gateway info in the database that has that string in it.  However, none of the gateways I found by searching the sql dump file were the check gateway.


Sidney Harrell

April 24, 2013 at 10:23 am

For troubleshooting purposes, you can temporarily put a

die();

statement into your check/init.php file to see if the file is being loaded on the payment page. If you were using a copy in uploads/espresso/gateways then you may have to deactivate and reactivate the gateway in order to reset the loading path that is stored in the db to the copy that is in plugins/event-espresso/gateways.
If the init.php file is being loaded, then check the check_payment_vars.php file to make sure that file is being loaded.


lhammond

April 24, 2013 at 6:58 pm

I have verified that both files are loading, and actually, my check payment info is included in the page, but is hidden!

What is the purpose of the “hide-if-js” class?  I can get rid of it in check_payment_vars.php, but I’d like to know if there is some design goal that I’m not understanding, so I can fix things the right way.


lhammond

April 24, 2013 at 8:08 pm

Okay, I figured out the problem.  I didn’t have any text entered in the Title field of the Check payment gateway, so the link that usually expands the “pay by check” information was empty.  And I see now that the hide-if-js class is useful for expanding or hiding the offline payment information.  BUT… I have a couple of questions:

1) I would like the full check payment information to be expanded by default when somebody is registering, but collapsed on the thank you page.  Is there a way to do that?

2) Which template controls the display and processing of the Thank You page?  Is it the same page a user goes to if they decide to come back and pay online later (via a link sent in the email)?


lhammond

April 24, 2013 at 8:49 pm

One more set of related questions I could use some help with:  I’d like the user paying by check to submit their check number and bank name (really just to motivate them to get the check out and put it in the mail!).  I was thinking I could store that in the attendee table transaction_details field.

a) Is there any reason why I shouldn’t use the attendee transaction_details field, and just serialize another set of name value pairs in there?

b) what template would I need to edit to allow the display and/or editing of the check number  and bank name fields I want to add in the admin panel?  I’d like to display the check number, if available, in the

– attendee list

– and in the attendee payment details record page

c) what template(s) should I do the database entry in?  These fields would be available when they click the “finalize your registration” by check option.  You can see what I’m talking about at http://www.compassclasses.com if you do a dummy registration for the Chess Tournament, which is our only currently active class.

I’m sure I can figure this out given enough time perusing the files, but I’d love someone to point me in the right direction if you can.  Thanks a million for your guidance!


Dean

April 25, 2013 at 5:06 am

Hello,

1) From my testing I think you would need to modify the templates to add a conditional for is_page() and then use CSS to block the jquery from working on the event registration page but allow it to work as normal elsewhere. CSS alone wont be able to deal with it as it seems the classes etc are the same.

2) Depending on what you wish to do it would either be the Thank You page in the Pages section of WordPress dashboard, or if you need to change the code it would be the payment_overview.php file located in event-espresso/templates (this can be copied to the uploads/espresso/templates directory to modify.

a) It is hard for us to give advice on customisations like this. Ideally we do not want you to modify the database structure. The transaction_details field shows the payment type plus it holds a lot more data. You *could* add more info to this array but perhaps using the attendee_meta table would be safer? Please note that we cannot offer support for customised elements, and please make sure you back up your files and test thoroughly before releasing to a live site.

b) attendee list = includes/admin-reports/event_list_attendees.php

Payment record = includes/admin-repots/enter_attendee_payments.php

c) payment_overview.php

Hope that helps.

The support post ‘Check Gateway info not showing after upgrade’ 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