Support

Home Forums Event Espresso Premium Registration moved from one event to another, but two tickets exist…

Registration moved from one event to another, but two tickets exist…

Posted: March 17, 2021 at 8:14 am


codingforsail

March 17, 2021 at 8:14 am

Hi,
My client has just moved a registration from the 10th April to an equivalent course on the 17th April.

All appears correct except that there are now two tickets:
All tickets for the transaction: 1475 (essa.org.uk)

I’ve put the details and attached screenshots in the following file: https://www.pastefile.com/6u8uav

Can you tell what might have gone wrong, or more importantly how I fix it for them please?

Kind regards,

Anita


Josh

  • Support Staff

March 17, 2021 at 12:24 pm

Hi Anita,

The ticket connected to the previous registration which had been cancelled will still exist. Are you looking to make sure it’s not included into the email sent to registrant?

If so, in the email message templates, if you have a shortcode like this:
[TXN_TICKETS_URL]
you can change it to:
[TXN_TICKETS_APPROVED_URL]


codingforsail

March 18, 2021 at 3:24 am

Hi Josh,

Is that the Ticket Notice template? If so, it’s already using the [TXN_TICKETS_APPROVED_URL] shortcode in the default template for both registrants and the primary registrant. We don’t have a custom template for this.

This is the extract of the code:

<td>
<h2>Hello, [RECIPIENT_FNAME]:</h2>
<p class="lead"><a href="[TXN_TICKETS_APPROVED_URL]">Print your ticket(s)</a>!</p>
</td>

Where we’d like to only show approved tickets is here: https://essa.org.uk/?ee=ee-txn-tickets-url&token=1-3644d656f5f9389019a901b69bc0d7a1

Is that possible?

Kind regards,

Anita


Josh

  • Support Staff

March 18, 2021 at 7:06 am

If you change the above URL’s query string to include -approved- then it will only show approved tickets.
e.g.
https://essa.org.uk/?ee=ee-txn-tickets-approved-url&token=1-3644d656f5f9389019a901b69bc0d7a1


codingforsail

March 18, 2021 at 11:20 am

Thanks Josh,

I’ve asked the client where she sees the link and will change as needed.

Kind regards,

Anita


codingforsail

March 19, 2021 at 7:17 am

Hi,
It seems my last comment was a bit optimistic.
The link I need to change appears on the Transactions page in the Actions on the right.
Is there a hook or filter that would allow me to target this in my site plugin?
Kind regards,
Anita


Tony

  • Support Staff

March 23, 2021 at 5:14 am

Hi Anita,

There is a filter available for this:

FHEE__EE_Admin_List_Table___action_string__action_items

As the name suggests the actions are actually a string so additional actions are appended onto the end, that means the simplest way to do this is to actually remove the filter used to add the current actions and replace it with a copy.

Something like this:

https://gist.github.com/Pebblo/69e8c62f500baccc100ec57b45bc4fe1


codingforsail

March 24, 2021 at 8:41 am

Thank you Tony.


Tony

  • Support Staff

March 24, 2021 at 9:06 am

You’re most welcome.

The support post ‘Registration moved from one event to another, but two tickets exist…’ 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