OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
[Solve]How to Edit the columns of the PDF (0 viewing) 
VehicleManager component support
Go to bottom Favoured: 0
TOPIC: [Solve]How to Edit the columns of the PDF
#8671
Leparcauto (User)
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
[Solve]How to Edit the columns of the PDF 3 Years, 4 Months ago Karma: 0  
Hello,
First of all, I don't write very well English because I am French.
I have just bought the "Vehicle Manager Pro Package" and I have two little bit problems,

Fist Problem: I would like know how to edit the columns for the PDF exportation, because actually I have two columns that I wish to delete. "Hits" and "Available to the rent" . If it's possible add 3 others columns.

Second Problem: I would like know if it possible to add informations to the vehicles list in my website for exemple add "model", "Vehicle type"

Thank you in advance for your answer

LeParcAuto
 
Logged Logged  
 
Last Edit: 2013/08/11 13:20 By Leparcauto.
  The administrator has disabled public write access.
#8675
admin (Admin)
Admin
Posts: 4874
graph
User Offline Click here to see the profile of this user
Re:How to Edit the columns of the PDF exportation 3 Years, 4 Months ago Karma: 61  
Hello LeParcAuto,

All main views now you may find in folder:
{yours site}/components/com_vehiclemanager/views/

so if you need rebuild list view for alone category - you need edit file:
{yours site}/components/com_vehiclemanager/views/alone_category/tmpl/list.php

You may copy it and create self new view.

Before any file edit please create backup copy.

For PDF list layout responsible function: displayVehPdf

in file:
{your site}/components/com_vehiclemanager/vehiclemanager.html.php

Thanks,
Andrew,
Ordasoft team
 
Logged Logged  
  The administrator has disabled public write access.
#8697
Leparcauto (User)
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Re:How to Edit the columns of the PDF exportation 3 Years, 4 Months ago Karma: 0  
Ok thanks, vvut it's difficult to find the good part of the php code
For the Vehicle List:
In the PHP code it's very easy to remove a part of the code to hide a field( a column ) but How to add column I have found the "hits" part and I would like edit to show Mileage, Maker, Vehicle type and Year of issue.
The php code for show "Hits"
Code:

if($params->get('hits')): ?>

  <div class="col_10_11 span2">
    <span class="col_10">
<?php echo "<img src='" . $mosConfig_live_site . "/components/com_vehiclemanager/images/hits.png' name='image' border='0' align='middle' />" . "&nbsp;" . _VEHICLE_MANAGER_LABEL_HITS; ?>
    </span>
    <span class="col_11">
<?php echo $row->hits; ?>
                    </span>
                  </div>



For the PDF:
I have found how to add columns but not how show the results,
This is the part of the document I have found
Code:


<div id="list">

            <table class="basictable_03" width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td width="10%" height="20" class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>">
<?php echo _VEHICLE_MANAGER_LABEL_COVER; ?>
                    </td>
                    <td width="40%" height="20" class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>">
<?php echo _VEHICLE_MANAGER_LABEL_TITLE; ?>
                    </td>
                    <td width="16%" height="20" class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>">
                        <?php echo _VEHICLE_MANAGER_LABEL_MAKER . ", " . _VEHICLE_MANAGER_LABEL_MODEL; ?>
                    </td>
<?php
        if ($params->get('show_pricerequest')) {
?>  
                    <td width="14%" height="20" class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>">
                        <?php echo _VEHICLE_MANAGER_LABEL_PRICE; ?>
                    </td>



LeParcAuto
 
Logged Logged  
  The administrator has disabled public write access.
#8704
admin (Admin)
Admin
Posts: 4874
graph
User Offline Click here to see the profile of this user
Re:How to Edit the columns of the PDF exportation 3 Years, 4 Months ago Karma: 61  
hello LeParcAuto,

Before show data in
{your site}/components/com_vehiclemanager/vehiclemanager.html.php

or in some view, we do data prepare at file
{your site}/components/com_vehiclemanager/vehiclemanager.php

all what we now do or what function call we do with help variabe "view" or "task"

so for "Vehicle List" in vehiclemanager.php

we use task == 'alone_category' or 'showCategory', and function "showCategory" in file vehiclemanager.php .

There are we prepare data for show.

so for yours case you need first do print_r($row) - with that you will see what fields we have, and if we not have fields what you need, you will need edit data prepare function.

Below small customization manual:

In Vehicle manager you may do that self, or you may hire us for that.

ours component have Open source,

it have two parts admin and frontend.

in admin you will see two files:
{yours
site}/administrator/components/com_vehiclemanager/admin.vehiclemanager.html.php
site}/administrator/components/com_vehiclemanager/admin.vehiclemanager.php


admin.vehiclemanager.html.php - responsible for show data
admin.vehiclemanager.php - responsible for prepare data

exactly for frontend
{yours site}/components/com_vehiclemanager/vehiclemanager.html.php
{yours site}/components/com_vehiclemanager/vehiclemanager.php

vehiclemanager.html.php - responsible for show data
vehiclemanager.php - responsible for prepare data

al layouts you may see and edit at folder:
{your site}/components/com_vehiclemanager/views/

All connection between what user press in Browser - do wit help TASK variable.

also if you wish all Joomla class methods work. E.g when you create new
Vehicle with help
mosVehiclemanager class. you need also edit file
site}/components/com_vehiclemanager/vehiclemanager.class.php

and add to class definition all new fields what you added to database

for work with review, responsible class from file
vehiclemanager.class.review.php
for work with buy request, responsible class from file
vehiclemanager.class.buying_request.php
for work with rent, responsible class from file
vehiclemanager.class.rent.php
for work with rent request, responsible class from file
vehiclemanager.class.rent_request.php


Most simply way now add new field to vehicle definition - that rename any fields
what you no need with help language manager tab in admin area .

also with help language file you may change options in all vehicle combobox
(options) fields

Also - any empty fields will not show at frontend

If you need change make/model - you need change below file:
{yours site}/administrator/components/com_vehiclemanager/makers_and_models.txt

Also we added to ours component very many module template positions - so you
may add any module to very many places in Vehicle manager - with help Joomla
module manager

If you give full details what exactly you wish, we will self create that for
you.

Thanks,
Andrew
 
Logged Logged  
  The administrator has disabled public write access.
#8705
Leparcauto (User)
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Re:How to Edit the columns of the PDF exportation 3 Years, 4 Months ago Karma: 0  
Ok it's perfect!
All is fine but the language at the backend, there i have always english not French, but my customer needs it in french.
 
Logged Logged  
  The administrator has disabled public write access.
#8738
admin (Admin)
Admin
Posts: 4874
graph
User Offline Click here to see the profile of this user
Re:How to Edit the columns of the PDF exportation 3 Years, 4 Months ago Karma: 61  
Please check your mail box

Thanks,
OrdaSoft team
 
Logged Logged  
  The administrator has disabled public write access.
Go to top
What are you looking for?
Anti-spam question: How many eyes has a typical person?