eventsmanager

Ticket Price Not Multiplied By Space

Feb 25th, 2013
235
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);
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×