Advertisement
eventsmanager

Ticket Price Not Multiplied By Space

Feb 25th, 2013
288
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2. This snippet will output flat price regardless of ticket spaces choose.
  3. */
  4. function my_em_ticket_is_available($booking_price, $EM_Ticket_Booking, $add_tax){
  5. if( $force_refresh || $EM_Ticket_Booking->ticket_booking_price == 0 || $add_tax !== 'x' || get_option('dbem_bookings_tax_auto_add') ){
  6. $booking_price = round($EM_Ticket_Booking->get_ticket()->get_price(false, $add_tax), 2);
  7. }
  8. return $booking_price;
  9. }
  10. add_filter('em_ticket_booking_get_price','my_em_ticket_is_available',10,3);
Advertisement
RAW Paste Data Copied
Advertisement