booking_meta['surcharges']) ) $EM_Booking->booking_meta['surcharges'] = array(); if( empty($EM_Booking->booking_meta['discounts']) ) $EM_Booking->booking_meta['discounts'] = array(); //Example Surcharges //This one adds a fixed $25 surcharge and is applied before taxes $EM_Booking->booking_meta['surcharges'][] = array( 'name' => 'Special Surcharge', 'desc' => 'Some type of surcharge description', 'type' => '#', //numerical discount i.e. $10.00 off 'amount' => '25.00', 'tax' => 'pre' //discount applied BEFORE taxes have been added, and IS taxable ); //This one adds a %3 surcharge, and is applied after taxes. $EM_Booking->booking_meta['surcharges'][] = array( 'name' => 'Handling Fee', 'desc' => 'Some type of surcharge description', 'type' => '%', //percentage discount of total price after taxes i.e. %3 extra 'amount' => '3.00', 'tax' => 'post' //discount applied AFTER taxes have been added, and IS NOT taxable ); //Example Discounts //This one adds a %3 discount before taxes have been applied. $EM_Booking->booking_meta['discounts'][] = array( 'name' => 'Handling Fee', 'desc' => 'Some type of surcharge description', 'type' => '%', //percentage discount of total price after taxes i.e. %3 extra 'amount' => '3.00', 'tax' => 'pre' //discount applied BEFORE taxes have been added, and IS taxable ); //This oadds a $10 discount after taxes have been applied $EM_Booking->booking_meta['discounts'][] = array( 'name' => 'Super Special Discount', 'desc' => 'Some type of discount description', 'type' => '#', //numerical discount i.e. $10.00 off 'amount' => '10.00', 'tax' => 'post' //discount applied AFTER taxes have been added, and IS NOT taxable ); } } add_action('em_booking_add', 'my_em_add_price_adjustments', 10, 3);