reachva Posted February 12, 2013 Report Share Posted February 12, 2013 Hello all, I have been trying to work out how to change the fuel price from the default 5.1 (excessively high) to 2.94 as it is currently shown at our base airport. I have tried editing the fuel info in the app.config.php file however that removes all of my airlines schedules from the admin center (though they show for pilots in the flight schedule and can still be booked). How else can I go about doing this? I don't know anything about coding beyond basic HTML and CSS so please keep it simple. Quote Link to comment Share on other sites More sharing options...
Nighthawk Posted February 12, 2013 Report Share Posted February 12, 2013 in the schedules u must marked "live fuel" prices i think. And use "." not "," Quote Link to comment Share on other sites More sharing options...
Kalo Posted February 13, 2013 Report Share Posted February 13, 2013 actually $5.10 per gallon is pretty accurate. However your VA may be reporting in another unit like kg, so it is charging 5.10 per kg instead of gallon. Also your not supposed to edit the app.config.php file. If your pilots are using both kACARS and fsPassengers, you will actually want to set your VA to report in pounds because kACARS does not report in anything else. First thing you will want to do is open app.config.php located in phpvms\core. Search for the text fuel info (usually ctrl+f to search). Copy that entire paragraph, it should look like this: # Fuel info /* Default fuel price, for airports that don't have And the surcharge percentage. View the docs for more details about these */ Config::Set('FUEL_GET_LIVE_PRICE', true); Config::Set('FUEL_DEFAULT_PRICE', '5.10'); Config::Set('FUEL_SURCHARGE', '5'); now open local.config.php (same location of phpvms\core) and search for the text Units settings Paste the paragraph from app.config.php above the unit settings paragraph, and right below the line: Config::Set('MONEY_UNIT', '$'); Now, we have to edit a few things in that paragraph and the one below it. 1. Where it says Config::Set('FUEL_GET_LIVE_PRICE', true); I changed my true to false. This way I can decide the price of fuel and change it accordingly. 2. Where it says Config::Set('FUEL_DEFAULT_PRICE', '5.10'); change the 5.10 to .80 This is 80 cents per pound which is pretty accurate to US live fuel prices. 3. Where it says Config::Set('FUEL_SURCHARGE', '5'); I changed mine to 0 Id rather adjust my fuel prices then mess with a 5% surcharge. Also when you edit prieps it takes out the 5% surcharge anyway. Under that paragraph find the line Config::Set('LiquidUnit', '2'); # 0=liter 1=gal 2=kg 3=lbs 1. Change the liquidunit to a 3 This way your system will measure in lbs versus another unit. Save local.config.php then upload it. Hope this helps, let me know if you have any issues. 1 Quote Link to comment Share on other sites More sharing options...
Strider Posted February 14, 2013 Report Share Posted February 14, 2013 You can edit the app.config file. As there are some settings in the app.config file, that are not in the local.config file. So edit it in the app.config file, but then copy and paste it into the local.config file, that way when you update phpvms, your settings wont get over written. You can edit any file you want. Just a lot of the files get over written in updates. Quote Link to comment Share on other sites More sharing options...
reachva Posted February 14, 2013 Author Report Share Posted February 14, 2013 I'll give that a try and post again if it works or not. Quote Link to comment Share on other sites More sharing options...
reachva Posted February 14, 2013 Author Report Share Posted February 14, 2013 Alright the liquidunit was already set to 3 in mine though I've made the other changes and things seem to be working. I'll do a trial flight later to see if the fuel price is updated. 5.1 per pound it looks like it was defaulting to. No wonder my finances have been barely scraping into the positive even with artificially high fares. Quote Link to comment Share on other sites More sharing options...
Kalo Posted February 14, 2013 Report Share Posted February 14, 2013 So edit it in the app.config file, but then copy and paste it into the local.config file, that way when you update phpvms, your settings wont get over written. thats why i said your not supposed to edit the app.confg file Alright the liquidunit was already set to 3 in mine though I've made the other changes and things seem to be working. I'll do a trial flight later to see if the fuel price is updated. 5.1 per pound it looks like it was defaulting to. No wonder my finances have been barely scraping into the positive even with artificially high fares. should be good if you changed the fuel price to .80 from 5.10. So if liquid unit was already set to 3 that means you were being charged $5.10 per pound...ouch I'm still ironing out ticket price...but right now I have it set to $0.22 per mile. It seems to be working out well so far...as long as the plane is at max passenger capacity. Quote Link to comment Share on other sites More sharing options...
reachva Posted February 14, 2013 Author Report Share Posted February 14, 2013 Yeah, I knew something was wrong when my ATR was consistently earning far more than my 737s. Short routes where fuel burn was low was good but anything over 500nm was bleeding cash. I'm just using real world air fares currently for my routes where they exist or similar fares for the same distance where no real airline flies it. I use the standard fares however and not the discount ones. Shame phpvms doesn't yet recognise ancillary revenue through sales of food and such on board, being an LCC that's where a decent proportion of income should come from. Quote Link to comment Share on other sites More sharing options...
reachva Posted February 14, 2013 Author Report Share Posted February 14, 2013 Okay the edit worked, now my fuel prices look more accurate. Now to update all my flight prices to reflect the changes. Thanks for the help. Quote Link to comment Share on other sites More sharing options...
Ariel Posted March 28, 2013 Report Share Posted March 28, 2013 Actually i was having this problem but it was pointed out to me that even though we changed the fuel weight it was giving the numbers, its still giving kilograms example one of my pilots did a flight KLAX-KMSP started with 54822lbs of fuel and ended with a use of 34939lbs. (by far everything is still accurate) when submitted and phpvms does all of its calculations it says 15848.1 fuel used @ 0.8 / unit if you convert the 34939lbs to kilograms you get the roughly 15848kgs which phpvms is saying is pounds.... there is something wrong here becuase the way i am being charged for fuel is still in kilograms even though the back end settings are in pounds. I am being charged wrong. Dont get me wrong...my va is not bankrupt and im actually making revenue which is a good thing...but how can i fix this so i get charged in pounds...did all the settings given here! 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.