Support

Home Forums Event Espresso Premium Zero value tickets are auto-approved

Zero value tickets are auto-approved

Posted: July 14, 2016 at 2:00 am

Viewing 6 reply threads


Auric

July 14, 2016 at 2:00 am

We have a situation where we sell member and non-member tickets. Sometime the non-member tickets are zero value so when the Default Registration Status for the event is set to Pending Payment, any registrations for zero value tickets are auto-approved – we’d like them to stay pending payment instead, is this possible?


Tony

  • Support Staff

July 14, 2016 at 2:26 am

Hi Auric,

No, because the registration can not be pending payment if no payment is actually pending (ticket price is 0) during a normal registration.

You could set the Default Registration Status to ‘Not Approved’ so all registrations need to be manually ‘approved’ (likely set to pending payment) however that will also apply to your member tickets so you would need to manually set the registrations to pending payment and they can then pay for the ticket.

Free tickets would then remain as pending payment because you (the admin) manually set that status.

Would that work?


Auric

July 14, 2016 at 2:48 am

That is how we’ve been doing it but the user then gets a message saying ‘REG Status: Not approved’ on the Registration Details page. What I am trying to do is change that message to ‘Pending’ so that the user doesn’t think there is a problem. I have already changed the message the user receives to say ‘Thank you for your registration’ so part of the problem has been solved.


Tony

  • Support Staff

July 14, 2016 at 3:38 am

You mean this section? – http://take.ms/gzish

There’s a couple of options to change the Not Approved text, you can translate the string ‘not approved’ (all lower case) to ‘pending’ (again use lower case) using the function shown here:

https://eventespresso.com/wiki/how-to-change-wording-with-poedit/#custom-function

(Note that change will be applied site wide, anywhere that did show ‘Not Approved’ will then shown ‘Pending’)

Or if you only want to change the string on that section you can load your own custom version of the template and alter the string output for registrations with a status of Not Approved through that.

To do that you’ll need to be using a child theme that you can load the template from. (the translation above would be the preferred method)


Auric

July 14, 2016 at 3:42 am

We always use child themes. How would I make the second solution work? I guess take a file from Event Espresso, alter it and load it into our child theme?


Tony

  • Support Staff

July 14, 2016 at 4:22 am

You take the template from:

\event-espresso-core-reg\shortcodes\espresso_thank_you\templates\thank-you-page-registration-details.template.php

Place that within the root directory of your child theme and it will load in place of the default.

Around like 68 you’ll find:

<?php $registration->e_pretty_status( TRUE )?>

That ouputs the reg status.

So I would wrap that within a if statement to check the status:

if ( $registration->status_ID() === EEM_Registration::status_id_not_approved ) {
//Output whatever you prefer for the 'Not Approved' registration status.
} else {
$registration->e_pretty_status( TRUE );
}

So you output whatever you prefer for the Not Approved status and anything else will output as normal.


Auric

July 14, 2016 at 7:55 am

Superb support from you guys again. Thanks Tony, you make me look very good when I do stuff for my customers.

Viewing 6 reply threads

The support post ‘Zero value tickets are auto-approved’ 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