I want to show the discounted price(price after adding the range) along with the base price of a bookable product what i am doing is changing the code below in the \woocommerce-bookings\includes\adminclass-wc-bookings-ajax.php file
// Build the output
$before = $product->get_price();
$after = wc_price( $display_price ) ;
$discount = $product->get_price() - wc_price( $display_price );
$output = apply_filters( 'woocommerce_bookings_booking_cost_string', __( 'Booking cost', 'woocommerce-bookings' ), $product ) .$discount ': <strong>' .$discount . $price_suffix . '</strong>';
Is this the right way or can you suggest anything?