OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
Modify price in the search module (0 viewing) 
VehicleManager component support
Go to bottom Favoured: 0
TOPIC: Modify price in the search module
#10089
ackio (User)
Fresh Boarder
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
Modify price in the search module 3 Years ago Karma: 0  
Hi,
how to modify the range of price in the search module?

In Euro the range is from 0 to 10000 - from 10000 to 20000.....and the top is 40000.

It's possible to modify this range?or, if no, how to change the max value?

Thanks
Andrea
 
Logged Logged  
  The administrator has disabled public write access.
#10092
admin (Admin)
Admin
Posts: 4861
graph
User Offline Click here to see the profile of this user
Re:Modify price in the search module 3 Years ago Karma: 61  
Hello,

For edit vehicle search module for vehicle manager manager soft - you need open file.

{yours site}/modules/mod_vehiclemanagersearch/mod_vehicle_manager_search.php

We set price with below code:

Code:

  for( $i=0; $i<=$max_price+10000; $i=$i+10000){
  $price[] = mosHTML :: makeOption($i, $i);
  $price_to[] = mosHTML :: makeOption($i, $i);
  }





Max price - we take from database, that most big price

If you download our last vehicle manager Search module version. There are we do other price field fill algorithm
Code:


$stepPrice = $max_price/100;
$stepPrice = (string)$stepPrice;
$stepCount = strlen($stepPrice);
if( $stepCount > 2 ) {
    $stepFinalPrice = $stepPrice[0].$stepPrice[1];
    for($i = 2; $i < $stepCount;$i++) {
        $stepFinalPrice .= '0';
    }
    $stepFinalPrice = (int) $stepFinalPrice;

else $stepFinalPrice = (int) $stepPrice;

for($i=0; $i<=$max_price+$stepFinalPrice; $i=$i+$stepFinalPrice){
    $price[] = mosHTML :: makeOption($i, $i);
    $price_to[] = mosHTML :: makeOption($i, $i);
}



Thanks,
OrdaSoft team
 
Logged Logged  
  The administrator has disabled public write access.
#10100
ackio (User)
Fresh Boarder
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
Re:Modify price in the search module 3 Years ago Karma: 0  
Thanks for the answer.

Where I can download the new module?

Sorry but no find...

Thanks
Andrea
 
Logged Logged  
  The administrator has disabled public write access.
#10130
admin (Admin)
Admin
Posts: 4861
graph
User Offline Click here to see the profile of this user
Re:Modify price in the search module 3 Years ago Karma: 61  
Hello,

this vehicle search module work only with Vehicle manager 3.0 version.

You may see it at :
ordasoft.com/All-Download/Joomla-2.5-ext...r/View-category.html

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?