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