Posted: September 2, 2020 at 10:59 am
A while ago (February) I created a site-specific plugin with your help, to alter the wording/branding of event espresso.
I don’t know whether the invoice problem I raised a separate ticket about earlier is related to this. I saw on a ticket someone else had raised that this plugin may help: https://wordpress.org/plugins/enable-jquery-migrate-helper/ Do you think it would help in this case? Kind regards, Anita |
|
Hi Anita, The jQuery Migrate Helper helps fix issues with JavaScript where scripts on the site are using functions that have now been removed from the jQuery library, that is unlikely to fix your issues. Can you post the content of your custom plugin to Pastebin (or somewhere else if preferred) and add the URL so I can take a look? |
|
Hi Tony, Thanks for offering to take a look. The plugin contents are here: https://pastebin.com/X7i3Uxj8 Last night, before I saw your reply, I tried the plugin and as you suggested it didn’t work. I also reverted to WordPress 5.4.2 and that didn’t work either. I tried again after I cleared the cache this morning in case it was that, but no change. Kind regards, Anita |
|
Hi Anita, Are you sure there wasn’t another plugin, or some other code added somewhere else? The reason I ask is the code you’ve sent me doesn’t alter anything visual other than text strings. So changing the colour of the buttons would have been done with CSS and usually not in a plugin like above. I’ll list out what I can see that code doing: 1. It changes one of the text strings which refer to the user logging and/or registering. 2. It changes the checkout buttons to use: 3. It auto-fills the Address info questions, but NOT from user meta (there’s also no ‘sync’ with user meta in that code). It’s pulling the address info from the EE_Contact previously created so you’ll only see the address details if they’ve previously been provided on EE. 4. It extends the WP User integration autofill so that it ‘remembers’ the last answer users on custom questions. Meaning if you’ve registered before and answers a custom question previously, the next time you answer that same question on say another event, if you are logged in it should be automatically prefilled. Does it sound like those might be working above? |
|
Hi Tony,
It is doing 1. Kind regards, Anita |
|
The hook to do this has been commented out, in the Pastebin it’s line 71 and 72.
Remove the
All of the address details are coming from |
|
This reply has been marked as private. | |
Most of the EE code around that simply can not work, the only reason it looks like it’s working is due to WP_Members_User::user_data() isn’t from Event Espresso so I don’t know the is and outs of what it is doing, but if that stops pulling data in then nothing else in that function will pull it for you from EE. I am glad it’s working now it’s just that if it fails further on then you’ll need to start looking into the above method.
Do you mind if I take a look in the admin, it’s quicker to view the transactions than work through screenshots on this occasion? If that’s ok you can send details using: |
|
Thank you. Kind regards, Anita |
|
Ok, so the reason that specific transaction wasn’t working (and likely any others with the same issue) is because you’d trashed the Primary Registrant. Event Espresso uses the primary registrant of the group to link everything together, the Invoice, Receipt, Tickets etc all use the primary registrant and them from their build out the details as needed. So whilst you can cancel the primary registrant by setting the status to cancelled, if you trash that registration you then can’t access any of the above. I’ve restored the primary registrant for the above (REG ID 17856) and the Invoice now shows. |
|
Thank you so much Tony. |
|
September 10, 2020 at 10:11 am You’re most welcome. Just a reminder than in the registration list, the primary registrant in a group is the one with the * next to their name. |
|
The support post ‘Site-specific plugin not working since upgrade to WordPress 5.5.1’ 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.