Posted: May 3, 2022 at 9:12 am
We need to run in non logged in mode for awhile so the plugin “EE WP-Users” will be turned off. |
|
Let me clarify: new purchase by unlogged person needs posting to a member’s list of purchases, as signified by key field of email or an ACF field we have set. |
|
Think I found it. |
|
Hi there! Thanks for contacting us! I got you to want to sell an event that the customer doesn’t need to register on your website and keep this sale registered. I just want to say that every Registration made in your event is stored under the Dashboard > Event Espresso > Events > Your Event > Registrations Let me know if it works! |
|
Well, didn’t work with Debug console nor Snippets. Is there a new tool for this function? |
|
So, looks like the database tables have different names, etc than the example:
^^Is the example^^ however I could not find the table ‘EE-Attendee_ID’ but I did find a table with the name ‘wp_esp_attendee_meta’, so exactly how should this PHP be formatted? |
|
Hi there,
No, they haven’t changed.
JoshFeck’s example isn’t using a table name, it’s defining a The reason it needs to do that is the prefix is definable within So the default would be
But he uses the defined prefix so that it works dynamically on sites that change it:
Which would parse to ‘wp_EE_Attendee_ID’ if it hasn’t been changed on the site itself, or if it was changed to say The other use case is when using WP Multisite, So, having said that I tested Josh’s example and it works as expected for me, however, I have a different solution which may help you here: https://gist.github.com/Pebblo/239dcbbab9514c13ba48fe3e8e9a5add That snippet adds a ‘Contact ID’ metabox to the section used to edit Registrations (Event Espresso -> Registrations -> {click on the registration}) In this example the Registration is already assigned to Contact ID 62: https://monosnap.com/file/Sr3fNmBnqzV7ySUv9MmvwxhOQky9GG Simply setting a different contact ID in that field and clicking the ‘Update Contact ID’ button will change that. Is that what you are looking for? (Note be careful when changing contact ID’s and make sure you are using the correct ID) |
|
The support post ‘Reconciling non-logged in user purchase to an existing member purchase’ 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.