Events Made Easy Forums How do I … percentage discount additional ticket/seat

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #58447
    Anonymous
    Inactive

    I am looking to set up an event where multiple people may attend. If two or more tickets are bought then I want these additional tickets to be discounted by say 10% whilst keep ing the original price for the first ticket. Is this possible? I have tried reading the docs for discounts, multiseats and multiprices but the above scenario just does not seem to fit. any help would be really appreciated.

    #58458
    Franky
    Keymaster

    You need to use code-based discounts for that, see https://www.e-dynamics.be/wordpress/category/documentation/17-discounts/
    For simple events, the example could be changed to:

    function my_eme_discount_function($booking) {
        $calculated_discount=0;
        $booked_seats=$booking['booking_seats'];
        if ($booked_seats>1) {
            $basic_price=eme_get_booking_event_price($booking);
            $calculated_discount= (($booked_seats-1)*$basic_price)*0.1;
        }
        return $calculated_discount;
    }
    add_filter('eme_discount_testdiscount2','my_eme_discount_function');
    #58463
    Anonymous
    Inactive

    Thanks for this it seems to be working. Is there a way to show the total discount on the page that shows after booking placed but before it is paid for (the form that shows the price and link to paypal to pay)?

    #58464
    Franky
    Keymaster
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘How do I …’ is closed to new topics and replies.
Scroll to Top