• Resolved Graham

    (@1stnight)


    Hi
    Like many of us, I guess, we’ve had to postpone our show because of the virus pandemic. I’ve offered vouchers to people who bought tickets. The vouchers can be used for future productions.
    I’m trying to find a way that these vouchers could be used in stageshow.

    I have tried putting an html note in the checkout with id=custom_checkout_element and setting stageshow-custom.js to collect the values. It does not work. The html output is displayed in the checkout but no data is collected.

    Has anyone in a similar situation any suggestions, please

    Graham
    Wolverton G&S Society

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Graham

    (@1stnight)

    Now that’s interesting. stageshow-custom.js only collects html notes if “Checkout” is chosen. Not for “Reserve”. Anyone know how to fix that?

    Graham

    Thread Starter Graham

    (@1stnight)

    I think I’ve sorted this one for myself. I’ll post the answer here just in case anyone is still using this plugin and wants to accept vouchers.

    What I did was change the labels in $clientFields in stageshowtrolley.php. I used the text fields for street and city and changed their labels to collect SaleRef and Voucher numbers instead. I commented out the other fields since I only need name and email for processing vouchers.

    I then changed the relevant msgid in stageshow.pot to remove the reference to reserving seats and changed the reserve button to read ‘vouchers’.

    There are two difficulties with this. Firstly, modifying the core files like this means that any future updates will overwrite my changes. I don’t think that is likely to happen soon.

    The second is that there is no way to validate the voucher numbers so the email has to be a holding message until they can be validated manually.

    I did write some html to call a php script to collect and validate the numbers and store them in a table but this would only work outside stageshow. Something stops it when it is embedded in the trolley.

    The neater solution would have been to intercept clicks on the renamed reserve button and call an external script that would read the seats chosen and process the vouchers, but I don’t know enough javascript to attempt this.

    I hope this workaround helps others in the same situation.

    Graham

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Vouchers for postponed show’ is closed to new replies.