As can be seen from the title of the topic, I’d like that in the ‘Bill to:’ of the invoice, there is the primary participant of another specific event previously recorded
Let me explain: I have an event where I record the agencies and they also become wordpress users.
Then, these agencies access into site using username and password and purchase events for other people. So the invoice, under the heading ‘Bill to:’ should be made ??out to agencies.
I tried to edit the query in the file template.php of invoice but does not work.
Can you give me a hand to solve this problem?
This is a customisation beyond support, you would need a developer to assist you with this as it would probably require pulling the address details from the user profile and having that change the invoice template.
It gets complicated though as the user may access the invoice details from the email etc without being logged in, so you would need some sort of system to block or react to this.
As mentioned its probably better to query the profile. If you have WP User Integration active, and request address details from the Agency events, it will add the address to the profile, which with some custom development could be obtained to show in the invoice.
Alternatively you could do a database query based on the events_attendee table using the event id to get the data you need.
Hope that helps.
Viewing 3 reply threads
The support post ‘Invoice: Bill to Primary Attendees of other specific event’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.