HighFlyerPL185 Posted June 12, 2013 Report 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
Members Vangelis Posted June 12, 2013 Members Report 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
Administrators simpilot Posted June 13, 2013 Administrators Report 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
Txmmy83 Posted June 13, 2013 Report 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
mseiwald Posted June 13, 2013 Report Posted June 13, 2013 <?php if($codeshare_details->flighttype == "P") { echo "Passenger"; } ?> Quote
Txmmy83 Posted June 13, 2013 Report Posted June 13, 2013 can I use else if as well to catch more possible Flighttypes? Quote
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.