Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Franky

    (@liedekef)

    #_MULTIBOOKING_DETAILS{xx} is an error in the doc, should be #_MULTIBOOKING_DETAILS_TEMPLATE{xx} (and has been corrected).

    However, #_MULTIBOOKING_SEATS should be working, but it will only work if there’s a payment connected to the booking, which only happens if the total price of the booking is > 0 …
    Maybe this is not the case in your test?

    Thread Starter Uobet

    (@uobet)

    Hi Franky,

    no, I had no price defined so far.

    Now I added a price and made an exact copy of your multibooking-examples in the documentation. The only difference are some
    -tags, see the following lines:
    You booked #_MULTIBOOKING_SEATS seats for a total of #_MULTIBOOKING_TOTALPRICE #_CURRENCY.

    The details can be found below:

    #_MULTIBOOKING_DETAILS_TEMPLATE{16}

    Then I made a test-booking for a multi-booking event which consists of three sub-events. I chose just 2 of them (the default seats-number is 0 seats and I chose 1 seat for the first and the second sub-event, leaving the 0 seats for the second sub-event unchanged).

    The output of the confirmation e-mail is only partly correct, see the following copy of the mail, the wrong details in bold:
    You booked 2 seats for a total of 20.00 EUR.
    The details can be found below:
    14 seats for eventX on 22. Juni 2015 (price: 10.00) 4 seats for eventX on 6. Juli 2015 (price: 0.00) 13 seats for eventX on 20. Juli 2015 (price: 10.00)

    The first line, with the “2 seats” and “20.00 Euro” is correct.
    The following lines in the mail are not correct:
    a) “14 seats”, “4 seats” and “13 seats”??
    b) the second event was not chosen, but in the mail it is shown with price 0.00 (although I chose 0 seats and the price is 10 Euro). I would not expect to find it in the list of the events booked.
    c) The events are not shown with a line break, as in the example of your documentation.

    Thank You

    S

    Plugin Author Franky

    (@liedekef)

    Ok, some things came up here upon review of your comments and my code:

    – first of all I removed some conflicting placeholders for events and rsvp mails in the code: https://plugins.trac.www.ads-software.com/changeset/1056580
    – then I checked your problem and it was due to an old documentation: #_BOOKEDSEATS was already used for event info (the total number of booked seats), so it couldn’t be used for rsvp mails again (where both event and rsvp placeholders can be used, but those for events are replaced first).
    That’s why in the rsvp placeholder doc I already used #_RESPSPACES , but I forgot to update the multibooking doc (which has been corrected now)
    – concerning the newline: I’m assuming that you use html mails, so you should add a br-tag yourself, if you want newlines to show.
    – concerning the 0 places: if you don’t want it to be shown, use a conditional tag in the “multibooking respondent mail” template and check for the value of #_RESPSPACES. See https://www.e-dynamics.be/wordpress/?cat=24 for some examples of this.

    Hope this all helps ??

    Thread Starter Uobet

    (@uobet)

    Hi Franky,

    I did another test (without replicating the changes in your above stated changeset so far).

    Now the Mail is almost correct.

    There’s just one thing left: The price stated for the sub-event with 0 seats (= no booking) is stated as 0 Euro (although it is 10 Euro as for the other sub-events).

    This is the E-mail:
    You booked 2 seats for a total of 20.00 EUR.
    The details can be found below:
    1 seats for eventX on 22. Juni 2015 (price: 10.00)
    0 seats for eventX on 6. Juli 2015 (price: 0.00)
    1 seats for eventX on 20. Juli 2015 (price: 10.00)

    Just one more question (just a question, it’s no problem as the present example works):
    Are the sub-events always booked through the seats number (0=no booking, 1 or >1 = booking), or are there also other possible options for booking a sub event (for example through an option field)?

    Thank you

    S

    Thread Starter Uobet

    (@uobet)

    sorry, thinking it over again, it is correct, that the price stated is 0.00 Euro (the price of the event is 10 Euro, but the price I should pay is of course 0.00 euro).
    Sorry….

    So, there’s just the last question left.

    Thank You

    S

    Plugin Author Franky

    (@liedekef)

    Indeed, “price” is just a word added in the template for the multibooking rsvp mail.
    Concerning the booking: yes, the seats indicate the booking intention (although in a number of cases “0” is also used as an indication of “I will not attend this event”). But there is an action hook you can use to change that: eme_insert_rsvp_action to do e.g. discounts.

    Thread Starter Uobet

    (@uobet)

    Thank you very much!

    Thread Starter Uobet

    (@uobet)

    One more question concerning the “multi booking form entry”. The below stated code works only in the first language, not in the second one.
    Is the template not multilingual? Header- and footer template work in both languages.
    Of course it would not really be a Problem. I could configure a second form entry template for the second language.

    <!–:de–>

    • #_EVENTNAME vom #d.#m.#y bis zum #@d.#@m.#@y: #_SEATS
    • <!–:–>

      <!–:it–>

    • #_EVENTNAME dal #d.#m.#y al #@d.#@m.#@y: #_SEATS
    • <!–:–>

    Plugin Author Franky

    (@liedekef)

    Just tested this: works just fine here. What version are you on?

    Thread Starter Uobet

    (@uobet)

    Hi Franky,

    now it works. It was again a cache-problem (I had changed the code, because a previous version had not worked, but due to the cache I saw still the previous version and it seemed not to work).

    Sorry

    Thank You

    Best Regards

    S

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘multibooking form, multibooking placeholders in mail not working’ is closed to new replies.