Support

Home Forums Event Espresso Premium Remove payment option for specific event

Remove payment option for specific event

Posted: December 17, 2013 at 3:17 pm


Chris

December 17, 2013 at 3:17 pm

I have a client that would like the invoice option for every event but one. Is there a way I can do this. I looked to see if there were any specific css classes put on divs for each event but didn’t see that. I could have just hidden it for that event. Any help is appreciated.


Sidney Harrell

December 17, 2013 at 4:05 pm

In the top of gateways/invoice/invoice_vars.php, right after line 5, you can add the following line:

extract($payment_data);
if ($event_id == 5) return $payment_data;


Chris

December 18, 2013 at 12:25 pm

Thnaks,
Can I add this in a place that won’t get overwritten in an update?


Jonathan Wilson

December 18, 2013 at 1:47 pm

Hi Chris,

You can copy the invoice gateway directory to wp-content/uploads/espresso/gateways to prevent the files from being overwritten.

The support post ‘Remove payment option for 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.

Event Espresso