Jesper von Ringsten

Remove country

20 posts in this topic

Hi,

All my properties will be in the same country, so country should be preset for all properties.

And i want to remove all dropdowns and selections lists where country is shown.

Anybody know how I do this?

Regards

Share this post


Link to post
Share on other sites

I link to this post. I change horizontal.php in folder /tmpl of module filter, but no changes in frontend. Sorry for my English. How to edit option fields in module filter?

Share this post


Link to post
Share on other sites

Hi All.

Maybe we must upgrade the component for this problem :D

But at the moment please try this solution

First, please open file mod_bt_property_filter/tmpl/default.php or horizontal.php

Remove these codes

<div class="form-group">

<?php echo BTPropertyFilterHelper::itemselect($params, 'country'); ?>

</div>

<div class="form-group">

<?php echo BTPropertyFilterHelper::itemselect($params, 'city'); ?>

</div>

then open file mod_bt_property_filter/helpers/helper.php

Find and remove this

if($type=='district' || $type=='city'){

$query->where('id = '.intval($value));

}

the folder is /templates/bt_property/html/mod_bt_property_filter/ for who use BT Property template.

Dmitry likes this

Share this post


Link to post
Share on other sites

Oh. I'm sorry. I copied it form a topic, its owner want to remove both of country and city.

So please remove only code for country.

then in helper.php

Change

if($type=='district' || $type=='city'){

$query->where('id = '.intval($value));

}

to

if($type=='district'){

$query->where('id = '.intval($value));

}

I tested it.

And it work on my local

Share this post


Link to post
Share on other sites

I'm sorry, whene I use the bt property templates I found the files here: /templates/bt_property/html/mod_bt_property_filter/but whene I don't use this templates, where I can found this files?

Share this post


Link to post
Share on other sites

OK.

Please find it in /modules/mod_bt_property_filter/

In this folder is original file of the module and the one in folder /templates/template_name/html/mod_name is used for overriding

Share this post


Link to post
Share on other sites

I hide fields Country and City in horizontal.php file.

Then on fron-end in BT Filter Module I see than all filter fields whis stayed (Status, District, Property category, Price and Search button) has alignment by left. It is not very aesthetically.

Please advice how to align this fields and Search button by center of page?

Share this post


Link to post
Share on other sites

And one more question please - how to interchange places of fields "Status" and "Property Category" in front-end of horizontal filter?

Share this post


Link to post
Share on other sites

For changing places of fields Status and Category - need to change places of this codes in horizontal.php file:

<?php if ($showsearchbox == 1) { ?>

<div class="col-md-2 col-sm-4">

<div class="form-group">

<?php echo BTPropertyFilterHelper::input_text($params, $keysearch); ?>

</div>

</div>

<?php } ?>

<?php if ($showstatus == 1) { ?>

<div class="col-md-2 col-sm-4">

<div class="form-group">

<?php echo BTPropertyFilterHelper::itemselect($params, 'prstatus'); ?>

</div>

</div>

<?php } ?>

and

<?php if ($showlocation == 1) { ?>

<!--<div class="col-md-2 col-sm-4">

<div class="form-group">

<?php echo BTPropertyFilterHelper::itemselect($params, 'country'); ?>

</div>

</div>-->

<!--<div class="col-md-2 col-sm-4">

<div class="form-group">

<?php echo BTPropertyFilterHelper::itemselect($params, 'city'); ?>

</div>

</div>-->

<div class="col-md-2 col-sm-4">

<div class="form-group">

<?php echo BTPropertyFilterHelper::itemselect($params, 'district'); ?>

</div>

</div>

Share this post


Link to post
Share on other sites

Hi Nikita

To align filter option to center please try this solution.

Open file /templates/bt_property/css/style.css

Add this rule

.horizontal-search .row{
text-align: center;
}
.horizontal-search .col-md-2,
.horizontal-search .col-sm-4{
display: inline-block;
}
.horizontal-search .selectpicker{
text-align: left;
}

I hope it work correctly on your site.

Share this post


Link to post
Share on other sites

If you want to City and District or Country from property submission

Open File /com_bt_property\default\layout\detail\detail_edit.php

From Line 72 to 80 you will see the related fields.

Share this post


Link to post
Share on other sites
On 7/24/2015 at 3:14 PM, tronghm said:

Hi Nikita

To align filter option to center please try this solution.

Open file /templates/bt_property/css/style.css

Add this rule


.horizontal-search .row{
text-align: center;
}
.horizontal-search .col-md-2,
.horizontal-search .col-sm-4{
display: inline-block;
}
.horizontal-search .selectpicker{
text-align: left;
}

I hope it work correctly on your site.

Hi, I tried real hard to figure this out, but failed , I understand that is posted forum code, and I tried to clean it / figure it but failed.

Can you post the correct code to center align the horizontal search please ?

Thank You

Share this post


Link to post
Share on other sites
On 22/03/2016 at 10:40 PM, hillswebdesign said:
On 24/07/2015 at 5:14 AM, tronghm said:

Hi Nikita

To align filter option to center please try this solution.

Open file /templates/bt_property/css/style.css

Add this rule



.horizontal-search .row{
text-align: center;
}
.horizontal-search .col-md-2,
.horizontal-search .col-sm-4{
display: inline-block;
}
.horizontal-search .selectpicker{
text-align: left;
}

I hope it work correctly on your site.

Hi, I tried real hard to figure this out, but failed , I understand that is posted forum code, and I tried to clean it / figure it but failed.

Can you post the correct code to center align the horizontal search please ?

Thank You

 

With this code, the price field with slider appears mangled on Mobile version

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now