Hi ,
I would like to remove two of the the "type" selection ?
as the option rent to smb, rent from smb ...is not applicable for my use. thank you
$types[self::TYPE_RENT] = tt('Rent', 'apartments');
$types[self::TYPE_RENTING] = tt('Rent a', 'apartments');
$vs[self::TYPE_RENT] = 'Want rent property to smb';
$vs[self::TYPE_RENTING] = 'Want rent property form smb';
$types[self::TYPE_RENT] = tt('Want rent property to smb', 'apartments');
$types[self::TYPE_RENTING] = tt('Want rent property form smb', 'apartments');
protected/components/SearchForm.php file:
if(in_array(Apartment::PRICE_RENTING, $result)){
$types[Apartment::PRICE_RENTING] = tt('Rent a', 'apartments');
}
if(in_array(Apartment::PRICE_PER_DAY, $result)){
$types[Apartment::PRICE_PER_DAY] = tc('rent by the day');
}
if(in_array(Apartment::PRICE_PER_HOUR, $result)){
$types[Apartment::PRICE_PER_HOUR] = tc('rent by the hour');
}
if(in_array(Apartment::PRICE_PER_MONTH, $result)){
$types[Apartment::PRICE_PER_MONTH] = tc('rent by the month');
}
if(in_array(Apartment::PRICE_PER_WEEK, $result)){
$types[Apartment::PRICE_PER_WEEK] = tc('rent by the week');
}
<?php
echo CHtml::hiddenField('apType', 0);
if(isFree()){
$currency = param('siteCurrency', '$');
} else {
$currency = Currency::getCurrentCurrencyName();
}
Yii::app()->clientScript->registerScript('set-currency-name', '
function setCurrencyName(id){
var currencyName = "'.$currency.'";
if (propertyType) {
/* hide all */
$.each(propertyType, function(key, value) {
$("#price-search-"+key).hide();
$("#price-currency-"+key).html("");
$("#price-currency-"+key).hide();
});
/* show selected */
$("#price-search-"+id).show();
$("#price-currency-"+id).html(currencyName);
$("#price-currency-"+id).show();
}
}
', CClientScript::POS_END);
Yii::app()->clientScript->registerScript('currency-name-init', '
setCurrencyName(0);
', CClientScript::POS_READY);
?>
Return to Questions and help for changes
Users browsing this forum: No registered users and 49 guests