OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?

Please add sites what really use VehicleManager component, please write about yours experience, tricks ...

Go to bottom Favoured: 0

Transmission in summary

thewelt (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Transmission in summary 9 Months, 3 Weeks ago
Karma: 0  
Hi,

I would like to add the transmission type in the summary on the "one category" view.
See atteached file.

Thank you for your answer.

Cheers,
Bart Weltens
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8243
graph
User Offline Click here to see the profile of this user
Re:Transmission in summary 9 Months, 3 Weeks ago
Karma: 101  
Hello

1. for change some layout in Joomla Vehicles - you need know PHP, HTML
2. Every time do backup
3. We may propose to you order this as "customization service".
Please write to OrdaSoft contact form (ordasoft.com/contact-us-form) with full details description, how all must look and work, and we will give to you quota.


For change this You need change View, Please with FTP go to
{your-site}/components/com_vehiclemanager/views/alone_category/tmpl

There find file "default.php" - Please backup it first!!!!
open as edit
find code:
Code:

                            if ( trim($row->mileage) !== '' && intval($row->mileage) !== 0 ) { ?>
                                <div class="vm_text" >
                                    <i class="fa fa-tachometer"></i>
                                    <span><?php echo _VEHICLE_MANAGER_LABEL_MILEAGE; ?>:</span>
                                    <span><?php echo trim($row->mileage); ?></span>
                                </div>
                            <?php } ?>


and replace to code like:
Code:

                            if ( trim($row->mileage) !== '' && intval($row->mileage) !== 0 ) { ?>
                                <div class="vm_text" >
                                    <i class="fa fa-tachometer"></i>
                                    <span><?php echo _VEHICLE_MANAGER_LABEL_MILEAGE; ?>:</span>
                                    <span><?php echo trim($row->mileage); ?></span>
                                </div>
                            <?php } 
              $transmission[0] = _VEHICLE_MANAGER_OPTION_SELECT;
              $transmission1 = explode(',', _VEHICLE_MANAGER_OPTION_TRANSMISSION);
              $i = 1;
              foreach ($transmission1 as $transmission2) {
                  $transmission[$i] = $transmission2;
                  $i++;
              }
              if ($row->transmission != 0) {
                  ?>
                                <div class="vm_text" >
                                    <i class="fa fa-tachometer"></i>
                                    <span><?php echo _VEHICLE_MANAGER_LABEL_TRANSMISSION_TYPE; ?>:</span>
                                    <span><?php echo $transmission[$row->transmission]; ?></span>
                                </div>

                  <?php
              } ?>




If nothing not work - please return backup copy

Regards
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
Go to top
»