Support

Home Forums Event Espresso Premium Select transactions except the ones in trash

Select transactions except the ones in trash

Posted: August 8, 2016 at 6:58 am


ARAGATO

August 8, 2016 at 6:58 am

I am using the following code to select all transactions that are status “TIN”. However, it selects all transaction including the ones already in trash. How do I select only the transactions that are still “active” and not trashed:

        $lcl_arr_transactions = EEM_Transaction::instance()->get_all(
            array(
                array(
                    'STS_ID' => 'TIN' 
                ) 
            ) 
        );


Josh

  • Support Staff

August 9, 2016 at 8:41 am

'Registration.REG_deleted' => '0' will filter out any transactions that have registrations in the trash.

$lcl_arr_transactions = EEM_Transaction::instance()->get_all(
 array(
  array(
   'STS_ID' => 'TIN',
   'Registration.REG_deleted' => '0'
  ) 
 ) 
);


ARAGATO

August 9, 2016 at 10:01 am

Perfect!
Thanks Josh.
Solved.

The support post ‘Select transactions except the ones in trash’ 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