OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
VehicleManager component support
Go to bottom Favoured: 0
TOPIC: Currency field
#6625
Bigdane54 (User)
Fresh Boarder
Posts: 16
graphgraph
User Offline Click here to see the profile of this user
Currency field 3 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.
#6633
admin (Admin)
Admin
Posts: 4874
graph
User Offline Click here to see the profile of this user
Re:Currency field 3 Years, 11 Months ago Karma: 61  
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.
#6639
Bigdane54 (User)
Fresh Boarder
Posts: 16
graphgraph
User Offline Click here to see the profile of this user
Re:Currency field 3 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.
#6645
admin (Admin)
Admin
Posts: 4874
graph
User Offline Click here to see the profile of this user
Re:Currency field 3 Years, 11 Months ago Karma: 61  
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
What are you looking for?
Anti-spam question: How many eyes has a typical person?