• Resolved iamthewebb

    (@iamthewebb)


    Hi,

    I’m using the #_BOOKINGBUTTON placeholder on my event page and have just installed https://pastebin.com/0fvLcHtC which is stopping people signing up to two events happening at the same time.
    I can see this code returns an error but it does not display on the page? The text on the button changes to Booking Error. Try again? Is there a way to display the error the code returns?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    another way is to check your PHP logs to see if there’s any other error that might cause this issue.

    Thread Starter iamthewebb

    (@iamthewebb)

    oh sorry I should have explained more clearly, the code is working.. just that when a user is stopped from booking that is on at the same time I assumed that this error would be displayed to the user..

    $EM_Booking->add_error(__('You already have a booking during the time of this event. Please select another event or cancel your previous booking.', 'events-manager'));

    Or where exactly does this error go?

    Is there a way to get #_bookingbutton to display these errors?

    Plugin Support angelo_nwl

    (@angelo_nwl)

    you can try to modify template file at events-manager/templates/placeholders/bookingbutton.php

    to use templates: https://wp-events-plugin.com/documentation/using-template-files/

    eg. wp-content/themes/Your Theme/plugins/events-manager/placeholders/bookingbutton.php

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘add_error’ is closed to new replies.