• Resolved StephenAndrewWalters

    (@stephenandrewwalters)


    Hi Malcolm,

    Amending “Invalid Seat Selection” popup text

    Is there a place within SSG that I can amend this text. I have users (who have not read my instructions!!) not understanding the ‘no single seat left’ rule.

    Any help in this is much appreciated,

    Regards

    Steve

    PS It is working a treat for most.

    https://wordpress.org/plugins/stageshow/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Malcolm

    (@malcolm-oph)

    The “Invalid Seat Selection” message is hard coded in the PHP, which in turn is used to define a Javascript variable (CantReserveSeatMessage) at run time, and it is that value that is used for the popup text.

    You could use a WordPress translation file to change the text before it is used to generate the JS, that should work OK.

    Alternatively, some custom Javascript could be used to change it once the StageShow generated code has already defined it, but the sequencing of this would be crucial.

    There may be a better way … I think on this a bit more and see if I can come up with something.

    Plugin Author Malcolm

    (@malcolm-oph)

    The update to v 5.7.8 includes the option to add custom javascript that runs when the seat is clicked. This can then set the error message to what you want before calling the standard function.

    So, you need to add something like the following, probably to a custom JS file that can be specified in the StageShow settings:

    function stageshowCustom_CheckClickSeat(obj)
    {
    CantReserveSeatMessage = “Your Message Here”;
    return stageshow_CheckClickSeat(obj);
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Amending "Invalid Seat Selection" popup text’ is closed to new replies.