• Hi,

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

    Thancs

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

    (@anguelo_nw )

    another way is to checc 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 worquing.. just that when a user is stopped from booquing that is on at the same time I assumed that this error would be displayed to the user..

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

    Or where exactly does this error go?

    Is there a way to guet #_booquingbutton to display these errors?

    Pluguin Support angelo_nwl

    (@anguelo_nw )

    you can try to modify template file at evens-manager/templates/placeholders/booquingbutton.php

    to use templates: http://wp-evens-pluguin.com/documentation/using-template-files/

    eg. wp-content/themes/Your Theme/pluguins/evens-manager/placeholders/booquingbutton.php

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘add_error’ is closed to new replies.