Support

Home Forums Event Espresso Premium Custom Payment Status Possible?

Custom Payment Status Possible?

Posted: January 21, 2015 at 10:18 am

Viewing 8 reply threads


William Tozzo

January 21, 2015 at 10:18 am

Hi Guys!

I do business with a lot of public school districts and was wondering if I could create a custom payment status to meet some unique needs. Here’s what I mean.

They send me a purchase order and alhough it is not payment, it is pretty much a guarantee. I would like to be able to create a status of “PO Received” so that the attendees get confirmations and don;t worry about their spots at our events. But for bookkeeping purposes, I don’t want to mark them as “Paid.”

Is this possible?

Suggestions?

Thanks guys,

Bill


Lorenzo Orlando Caum

  • Support Staff

January 21, 2015 at 2:14 pm

Hi Bill, custom payment statuses are not currently available but would the following idea work?

Repurpose the overpaid payment status to PO Received. This is wrapped in a textdomain for Event Espresso so it could be renamed by using something like this in a site specific plugin or a child theme’s functions.php file:

function ee_rename_overpaid_payment_status_po_received( $translated, $original, $domain ) {
 
    // This is an array of original strings
    // and what they should be replaced with
    $strings = array(
        'overpaid' => 'PO Received',
        'Overpaid' => 'PO Received',
    );
 
    // See if the current string is in the $strings array
    // If so, replace its translation
    if ( isset( $strings[$original] ) ) {
        // This accomplishes the same thing as __()
        // but without running it through the filter again
        $translations = get_translations_for_domain( $domain );
        $translated = $translations->translate( $strings[$original] );
    }
 
    return $translated;
}
 
add_filter( 'gettext', 'ee_rename_overpaid_payment_status_po_received', 10, 3 );

That should change the verbiage. Next to trigger this transaction status, just to go a transaction details screen (click on the date or id of a specific transaction from the transactions overview screen). Then click on the apply payment button in the payment details area and in the next window enter a payment amount of 0.01 and set the registration status to pending payment and save changes.

That will trigger the status. Then when you receive a payment, just delete the 0.01 placeholder by using the trash can icon and add the actual payment amount and set the status for the registration to approved.

Thanks


Lorenzo


William Tozzo

January 31, 2015 at 8:30 am

Hi Lorenzo:

Thanks so much. I just got a chance to sit down to this now.

I guess this would work, but if custom payments are available I would like to go that route if it is not much difficulty. I’m not comfortable poking around in the functions.php file. I’m a techy kind of guy, but not a developer.

Could you guide me to how to set up a custom payment option? Or someone that could help me with it if it involves changing code?

Thanks!!


Lorenzo Orlando Caum

  • Support Staff

February 2, 2015 at 7:57 am

Hi, there was a typo at the beginning of my prior response. They are not available so I suggested a workaround.


Lorenzo


William Tozzo

February 2, 2015 at 9:55 am

Oh, ok. Well I had a developer add the code in the functions.php and I’m about to play with it now. I’ll be in touch.

Thank you Lorenzo,

Bill


William Tozzo

February 2, 2015 at 10:08 am

Ok Lorenzo. Help me out:)

I have about 60 registrations to my event in March that have registered, selected invoice for their payment method, and some have sent me purchase orders.

I have pasted the code as you suggested and now I would like to change their payment status to PO Received with your workaround.

Could you help with this?

You should know that I will be doing this for about 60 registrants and many of them have registered in groups of up to 10 teachers.

Thanks Lorenzo,

Bill


Josh

  • Support Staff

February 3, 2015 at 8:59 am

Hi Bill,

I checked with Lorenzo and he followed up with you via email.


Lorenzo Orlando Caum

  • Support Staff

February 3, 2015 at 9:10 am

Hi Bill,

I sent a reply to your email with more information.

Thanks


Lorenzo


William Tozzo

February 18, 2015 at 12:14 pm

Thanks guys.

Viewing 8 reply threads

The support post ‘Custom Payment Status Possible?’ 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