• 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 15 replies - 1 through 15 (of 29 total)
  • Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Hi Fabian,

    Nothing has been changed at all in the plugin. Last update was over two months ago. You say that it worked fine before, so something else must have changed in your WP installation.

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    I have looked in the log files for you, but the last code change was on 13-08-2018. Last update was only to confirm compatibility with WP 5.0.

    This add-on is really simple, so there is not much that can go wrong. ?? You might need to look into if other meta data is or is not saved correctly either.

    Thread Starter fabian96

    (@fabian96)

    I don’t know how long it does not work already. I have only changed some css of Events Manager. What do you mean by mentioning meta data?

    Thread Starter fabian96

    (@fabian96)

    Hello,

    I’d like to tell you the reason of experiencing this issue. The Meta Box in Admin Edit Event does not synchronize with the Gateway Selector in Front-End Event Submission Form. Unsetting a gateway only works for me, if I uncheck the chosen gateway in both forms. To avoid this issue, I have disabled the Meta Box in the olugin code.

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Thank Fabian,
    That is actually something I can look into for you ?? I’ll get back to you soon.

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    In the update I made it possible to not have any gateways selected. In the previous version everything worked fine, also in the front-end, but you could not deselect every gateway.
    I do not understand why anyone would want to deselect them all, but it is possible now.

    Thread Starter fabian96

    (@fabian96)

    Thank you for adding a new feature. Unfortunately, this does not solve the problem. Disabling a gateway will only work, if I deselect this gateway both in Front-End Event Submission Form and in Meta Box in Admin Edit Event.

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    In all my tests it works, so there must be something else that is interfering at your end. Most likely your jQuery is loaded too late in the front-end.

    Thread Starter fabian96

    (@fabian96)

    Diabling all gateways does not work, too. It shows up some errors in the booking form.

    • This reply was modified 5 years, 8 months ago by fabian96.
    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Just mentioning “errors” does not provide me with any information of course.
    Do you have a public link I could check?

    Thread Starter fabian96

    (@fabian96)

    Sorry, here is the error that is shown:

    Warning: in_array() expects parameter 2 to be array, string given in .../htdocs/wp-content/plugins/stonehenge-em-gateway-selector/stonehenge-em-gateway-selector.php on line 163
    
    • This reply was modified 5 years, 8 months ago by fabian96.
    Thread Starter fabian96

    (@fabian96)

    I have also tested the plugin on a clean wordpress installation an both errors do not disappear either. Are you using any additional plugins that are needed by this plugin?

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Aha.. I found my mistake…
    When I added the selector to the front-end event submission page, I did not realize that in the Admin there now would be two selectors: one meta box to the side and one below the ticket options.

    So what happened was that every gateway was registered twice. Not disabling either one.

    So, I will remove the meta box in the Admin, keeping the selector only in the tickets section, to keep compatibility with the front-end submission form.

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    I have just released version 1.3.3.
    Please update when prompted by WordPress. Let me know if this indeed solves it, please.

    Thread Starter fabian96

    (@fabian96)

    Thank you very much. Now it works without modifying the plugin code. I have also seen that you have removed the ability to deactivate all gateways. I think to achieve this it has to be done in a completly different way. It has to work like disabling all gateways in the gateway settings.

    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.

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