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

VehicleManager component support

Go to bottom Favoured: 0

Currency field

Bigdane54 (User)
Fresh Boarder
Posts: 16
graphgraph
User Offline Click here to see the profile of this user
Currency field 11 Years, 11 Months ago
Karma: 0  
Hi again Ordasoft admin

New question. When you add a vihicle in ADD Vehicle, you must when adding (typing) the price also type the currency. Is it possible to set thet field to one currency, because users can type the currency in many different ways. like USD, usd, Usd UsD ect.
I don´t find that nice, when you look on the site.


Thanks
John
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8367
graph
User Offline Click here to see the profile of this user
Re:Currency field 11 Years, 11 Months ago
Karma: 102  
Hi John,

You may do that, but you will need little rebuild code.

I show how do that only for frontend in Vehicle manager Pro version:
You need in file:
{yours site}/components/com_vehiclemanager/vehiclemanager.html.php
find rows:
Code:


<input
class="inputbox" type="text" name="priceunit1" size="15"
value="<?php echo $row->priceunit; ?>"  />


and replace to :
Code:

<input
class="inputbox" type="text" name="priceunit1" size="15"
value="USD" readonly />
    <input
        class="inputbox" type="hidden" name="priceunit" size="15"
        value="USD" /> 



but first backup that file

Thanks,
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
Bigdane54 (User)
Fresh Boarder
Posts: 16
graphgraph
User Offline Click here to see the profile of this user
Re:Currency field 11 Years, 11 Months ago
Karma: 0  
Hi


Greate, that worked. Is it posibble to show currency before price?
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8367
graph
User Offline Click here to see the profile of this user
Re:Currency field 11 Years, 11 Months ago
Karma: 102  
Hi ,

You need at all places in file:
{yours site}/components/com_vehiclemanager/vehiclemanager.html.php

at all places where you find set show "priceunit" before "price", if you have Vejhicle manager Pro version - you will need do that for all PHP files in folder:
{yours site}/components/com_vehiclemanager/views/

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