• Resolved Steeven

    (@steeven)


    Hi

    Is it possible in any way (with shortcode preferrably) to count how many bookings are made? And then to show certain content, that differs according to the count?

    Example:
    I namely need a method to show the total price for the user – if he has made a booking for one event he must pay, say 200 $. If he has made bookings for two events he gets a discount and must pay, say 350 $.

    http://wordpress.org/plugins/events-manager/

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

    (@angelo_nwl)

    try the placeholders on this link – http://wp-events-plugin.com/documentation/placeholders/

    however do you have any sample formats in mind?

    Thread Starter Steeven

    (@steeven)

    Thanks for your answer.

    I don’t find any placeholder to COUNT all tickets in the link.
    I don’t know what you mean by sample formats. My wish is simple:

    • If the user attends ONE class, then show the price 200 $.
    • If the user attends TWO classes, then show 350 $.
    • If the user attends THREE classes, then show 450$.

    Of course this is to be shown on a specific payment-page that the user can access when logged in.

    I can see in the bottom of your link some information about the if-commands. So far so good. But how do I count the tickets? How do I get the count variable to put into some if-command?

    Plugin Support angelo_nwl

    (@angelo_nwl)

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    why can you not use seperate tickets for each group pricing?

    e.g. ticket one allows maximum of one space @ $200, next one 2 @ $350 and so on

    then using #_BOOKEDSPACES in your formats you can show number of booked spaces.

    Thread Starter Steeven

    (@steeven)

    Thanks, @angelo_nwl, I will try your link. Can you tell me, how I write this price, calculated in the function, on a page? What short-code?

    Thanks for reply @marcus, but I don’t follow your idea. In my case I use the EM plugin to let people join a 10 week class. A class costs say 500$. When joining more than one class (pr. season), the additional classes costs only 200$. So 1 class is 500$, 2 is 700$, 3 is 900$ etc.
    Each user should be able to buy just ONE seat for a class, meaning just ONE ticket without the posibility to add more spaces.
    I might have misunderstood you, but I don’t think this is a solution.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    sorry, but you might need a developer assistance to do this however the snippet I shared is a good startup. also, maybe @marcus can clarify that.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Count number of bookings’ is closed to new replies.