HighFlyerPL185 Posted June 12, 2013 Report Share Posted June 12, 2013 I'd like to add new flight types, and I'm wondering how can I do this? For example L would stand for low-cost. I could then display 'Low Cost' in the search results or in Flight Briefing, instead of the letter. Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted June 12, 2013 Members Report Share Posted June 12, 2013 As a secondary airline do you mean ? Because i might have not understand it well please write down your thought of wy would you do something like that Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted June 13, 2013 Administrators Report Share Posted June 13, 2013 At the end of the app_config.php file is a set of flight type definitions. I have added to these before for clients with success. Copy it and put it in your local_config.php file and try adding the flight types you would like. /** * Constants * Do not modify these! All sorts of weird s*** can happen */ # Set the type of flights we have Config::Set( 'FLIGHT_TYPES', array( 'P'=>'Passenger', 'C'=>'Cargo', 'H'=>'Charter' ) ); you could add your low cost option like this (Just do not remove any of the default types) Config::Set( 'FLIGHT_TYPES', array( 'P'=>'Passenger', 'C'=>'Cargo', 'H'=>'Charter', 'L' => 'LowCost' ) ); 1 Quote Link to comment Share on other sites More sharing options...
Txmmy83 Posted June 13, 2013 Report Share Posted June 13, 2013 hallo have a question how can I force output on frontpage to show Passenger instead of P http://www.flyeurope-va.org/index.php/codeshare Quote Link to comment Share on other sites More sharing options...
mseiwald Posted June 13, 2013 Report Share Posted June 13, 2013 <?php if($codeshare_details->flighttype == "P") { echo "Passenger"; } ?> Quote Link to comment Share on other sites More sharing options...
Txmmy83 Posted June 13, 2013 Report Share Posted June 13, 2013 can I use else if as well to catch more possible Flighttypes? Quote Link to comment Share on other sites More sharing options...
mseiwald Posted June 13, 2013 Report Share Posted June 13, 2013 Sure Quote Link to comment Share on other sites More sharing options...
Txmmy83 Posted June 13, 2013 Report Share Posted June 13, 2013 Danke für die Hilfe Manuel Quote Link to comment Share on other sites More sharing options...
HighFlyerPL185 Posted June 13, 2013 Author Report Share Posted June 13, 2013 Thanks Simpilot 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.