• Resolved fabian96

    (@fabian96)


    Hello,

    The plugin has been working fine, but now I can not unselect the gateways anymore. It is no problem to select a gateway for an event but unselecting it does not work. Could you please fix this issue?

Viewing 14 replies - 16 through 29 (of 29 total)
  • Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Okay, I had completely rewritten the plugin. I got it working for saving the checkboxes, but then I ran into a major block in EM Pro. ??

    Naturally, EM Pro checks the activated gateways. There is a built-in block/error that checks if you have selected a payment gateway in the front-end booking form. If not, it displays the error “Choice of payment method not recognized…”
    If the error is displayed, the booking will not be registered.

    So, in short, if you have activated gateway(s) you cannot unset all of them. You will to keep at least one activated per event or the booking form will output the error.

    This is quite logical…
    Why would you want to disable all gateways anyway? If you allow bookings, then at least the offline gateway should be able to be used, right?

    So, before I finish the new version and release it, I would like to hear your thoughts. ??

    Thread Starter fabian96

    (@fabian96)

    Actually, I don’t see any reason for disabling all gateways. If I find one, I will contact you again. That wasn’t even my question in this thread. ??

    I’m much more interested in this topic. It would be nice if you commented on this: “By the way, I still don’t know why your code to display the sub total in single booking mode does no work on my website. It also does not work on a clean installation of WordPress. It would be very nice if you created a plugin for this purpose.”

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Aha.. Well, would you help me out a bit then, please?

    In stonehenge-em-gateway-selector.php, comment out line 46:
    add_action('add_meta_boxes', array($this, 'create_em_active_gateways'));

    That should prevent the side meta box from being created.
    The selector should still be there below the ticket options.

    If that results into what you want, let me know. Would save me a lot of time ??

    As for the Sub Total.
    Are there any errors and/or notices in your browser console if you implement the latest version?

    Thread Starter fabian96

    (@fabian96)

    Now I am a little bit confused. You have already removed this function in the latest version. Now everything works fine.

    As for the Sub Total. No, it does not show any errors. The javascript code is still not executed, I think.

    Thread Starter fabian96

    (@fabian96)

    Is there anything new on this topic?

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Hi @fabian96,
    I have posted a new snippet on the EM Pro forum. Could you please try it and see if it does work for you? Thanks! ??

    Thread Starter fabian96

    (@fabian96)

    Hi Patrick,

    unfortunately there is still an issue in this plugin. I’ve tried to create an event without the ability to book tickets. However, it shows the error “please select at least one payment gateway” when trying to publish the event although the list of payment gateways is not even shown.

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Hmmm… That has probably something to do with that $EM_Event->rsvp has not been set in that case…

    Thanks, Fabian, I will look into it. ??

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Hi Fabian,
    It took longer than expected, but version 1.3.5 should solve the free ticket issue.

    Thread Starter fabian96

    (@fabian96)

    Thanks, now everything works fine.

    Thread Starter fabian96

    (@fabian96)

    Hi Patrick,

    there were some changes concerning the gateways in the latest EM Pro versions (esp 2.6.5). Might it now be possible to deactive all gateways for specific events?

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    No, if you have bookings enabled, you will need at least one gateway. That can also be the Offline gateway, of course.

    It makes no sense to disable all gateways, in my eyes. If you allow bookings, either the bookings are free, or need to be paid manually. Both can be done with the Offline gateway. Free bookings, may also use an online-gateway to be registered. Free bookings are not redirected to the PSP.

    Thread Starter fabian96

    (@fabian96)

    Ok, thank you very much.

    OT: The plugin description seems to be wrong: “OpenStreetMaps replacement for Events Manager.”

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Thanks for that!
    Because of stricter rules form the WordPress Plugin Team (which are completely understandable) I had to update the readme files. I guess I made a wrong copy/paste there. ??

    I will update it soon.

Viewing 14 replies - 16 through 29 (of 29 total)
  • The topic ‘Gateways can not be unselected’ is closed to new replies.