|
How add new vehicle type to vehicle manager
You need:
Open file:
{yours
site}/administrator/components/com_vehiclemanager/admin.vehiclemanager.php
find function "editVehicle"
find rows:
//Select list for vehicle type
$vehicletype[] =
mosHtml::makeOption('sedan',_VEHICLE_MANAGER_OPTION_SEDAN);
and there are add some like:
$vehicletype[] =
mosHtml::makeOption('motorcycles',_VEHICLE_MANAGER_OPTION_motorcycles);
after that go to file:
{yours site}/components/com_vehiclemanager/vehiclemanager.php
find row:
$vehicletype[] =
mosHtml::makeOption('sedan',_VEHICLE_MANAGER_OPTION_SEDAN);
and after it add:
$vehicletype[] =
mosHtml::makeOption('motorcycles',_VEHICLE_MANAGER_OPTION_motorcycles);
find row:
$vtype['sedan'] = _VEHICLE_MANAGER_OPTION_SEDAN;
and after it add:
$vtype['motorcycles'] = _VEHICLE_MANAGER_OPTION_motorcycles;
after that please add _VEHICLE_MANAGER_OPTION_motorcycles constant to yours
language files:
{yours site}/components/com_vehiclemanager/language/
Thanks,
OrdaSoft team
|