- This topic has 3 replies, 2 voices, and was last updated 6 years, 2 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘How do I …’ is closed to new topics and replies.
Events Made Easy › Forums › How do I … › percentage discount additional ticket/seat
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.
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');
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)?
See the doc: https://www.e-dynamics.be/wordpress/category/documentation/7-placeholders/7-4-rsvp-mails/ , search for #_DISCOUNT