How do I disable offline payments for certain events, but not others?

WordPress Event Management, Calendars & Registration Forums General Question How do I disable offline payments for certain events, but not others?

This topic contains 3 replies, has 2 voices, and was last updated by  Stephen Harris 9 years, 1 month ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #21048

    Is there a way to select on a per event basis what kind of payment types I want to take? Like have some events be paypal only, and some paypal and offline? Please advise. Thanks!

    Cameron Underdown
    #21062

    Hi Cameron,

    Payment gateway settings are set globally, however I have created a small plugin that allows you to specify which gateways are enabled for that event. Would you like me to send it to you?

    Stephen Harris
    #21082

    Yes please! That would be wonderful!!

    Cameron Underdown
    #21095

    Hi Cameron,

    My apologies, I remembered incorrectly: I hadn’t developed a plug-in, I had written this tutorial: http://wp-event-organiser.com/blog/tutorial/displaying-different-gateways-different-events/.

    You can pretty much copy and paste that snippet into your own plug-in, or even a theme’s functions.php (but not recommended in case you change themes).

    To use the plug-in, you need to create a custom fields for your events with the key ‘gateway’ and the value each of the payment gateways (lowercase, e.g. ‘offline’, ‘paypal’, ‘stripe’ etc) that are to be available for that event.

    It’s a poor user-interface, and at some point I shall create a plug-in which achieves the same thing but with a better user experience.

    Stephen Harris
Viewing 4 posts - 1 through 4 (of 4 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.