$item ) { $entry_id = !empty( $item["id"] ) ? $item["id"] : ''; $global = !empty( $item["global"] ) ? $item["global"] : ''; $amount = !empty( $item["amount"] ) ? $item["amount"] : ''; // Lets check if the tax is global or if is asigned to the room and if tax is aplied on services if ( ( $global == true || in_array( $entry_id, $eb_room_taxes) ) ) { $eb_tax_price += $amount; } } // Add the tax price to the normal price $room_price = $room_price + $eb_tax_price * $room_price / 100; } else { $room_price = $room_price; } $eb_room_price = ''.eb_price( $room_price ).''; if ( $eb_text_before_price != '' ) { $eb_room_text = ''.$eb_text_before_price.''.' '; } else { $eb_room_text = ''; } echo '
'; echo $eb_room_text.$eb_room_price; echo ''.' ' .$eb_room_per_night_text. ''; echo '
'; } } }