Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

Filter city and category in search

Featured Lock Resolved Bug
Hello,

I am using the SP Property component in the Empire template and I have 2 problems:

1) In the search engine, the system only lists 5 locations when there are more than 20

2) In the category filter, only shows 4 when there are more than 30.

The search and filtering system does not work properly and is a big problem for us. We have done a very expensive API integration and we depend on the search system to work properly since there are more than 2000 properties.

We wait for an answer.

Attachments (1)

  • Captura de pantalla 2017-10-09 a las 9.31.20.png
    Captura de pantalla 2017-10-09 a las 9.31.20.png 102.1 KB

12 Answers

Toufiq - Staff

More than a month ago #Permalink
Hi,

Find out the code from this file
components/com_spproperty/models/properties.php


if ($limit = $params->get('limit', 4)) {


And change the limit 4 to your desired number

-Thanks

thechefmarketing

More than a month ago #Permalink
Hi,

Find out the code from this file
components/com_spproperty/models/properties.php


if ($limit = $params->get('limit', 4)) {


And change the limit 4 to your desired number

-Thanks


OK thanks. Solved. To make sure if someone happens to you, you must also modify this line:

public static function getCategories ($ limit = '4', $ ordering = 'DESC', $ pstatus = '') {

and change the 4 by the number and categories limit to show.

Toufiq - Staff

More than a month ago #Permalink
Hi,

Find out the code from this file
components/com_spproperty/models/properties.php


if ($limit = $params->get('limit', 4)) {


And change the limit 4 to your desired number

-Thanks


OK thanks. Solved. To make sure if someone happens to you, you must also modify this line:

public static function getCategories ($ limit = '4', $ ordering = 'DESC', $ pstatus = '') {

and change the 4 by the number and categories limit to show.


Hi, We will fix it next update. Thanks

thechefmarketing

More than a month ago #Permalink
2 new issues:

1) The filter by locations does not work if the name of the city you have 2 is composed (2 or more words) For example: "Dos Hermanas". The search url generated by the system does not include the "_" in the spaces

2) How can I sort alphabetically the list of Locations and Categories in the search engine ?.

Thank you.

thechefmarketing

More than a month ago #Permalink
Hi,

Find out the code from this file
components/com_spproperty/models/properties.php


if ($limit = $params->get('limit', 4)) {


And change the limit 4 to your desired number

-Thanks


OK thanks. Solved. To make sure if someone happens to you, you must also modify this line:

public static function getCategories ($ limit = '4', $ ordering = 'DESC', $ pstatus = '') {

and change the 4 by the number and categories limit to show.


Hi, We will fix it next update. Thanks


2 new issues:

1) The filter by locations does not work if the name of the city you have 2 is composed (2 or more words) For example: "Dos Hermanas". The search url generated by the system does not include the "_" in the spaces

2) How can I sort alphabetically the list of Locations and Categories in the search engine ?.

Thank you.

Toufiq - Staff

More than a month ago #Permalink
Hi, Please share your site url. Let me check, please. Thanks

thechefmarketing

More than a month ago #Permalink
Hi, Please share your site url. Let me check, please. Thanks


http://www.luxeplaceinmobiliaria.es/

For example: Filter Ubicación= "Alcalá de Guadaira". The search url generated by the system does not include the "_" in the spaces. if you manually put the "_" in url spaces, if it works

Toufiq - Staff

More than a month ago #Permalink
Hi,

Is it possible change the language in English? I can't understand your language.

-Thanks

thechefmarketing

More than a month ago #Permalink
Hi,

Is it possible change the language in English? I can't understand your language.

-Thanks


Okay. We have changed it but it can not be in English very long so I would appreciate a quick response.

In any case, he insists, the error is that the system does NOT work when the location filter is a composite city name. For example "New Delhi". The system shows all the houses independently of this filter since the search url that generates the system has spaces between "New" "Deli".

Example:

index.php?option=com_spproperty&view=properties&searchitem=1&city=New******SPACE****** Deli&Itemid=542

so that fucnione the system needs to be

index.php?option=com_spproperty&view=properties&searchitem=1&city=New_Deli&Itemid=542

Thank you

Rifat Wahid Alif - Staff

More than a month ago #Permalink
Hi,
Thanks for your query. instead of the space, we are using ASCII encode here (UTF-8) instead of the space ASCII is %20. i think this isn't space.

- Thanks

JUAN BUITRAGO

More than a month ago #Permalink
Hi,

Find out the code from this file
components/com_spproperty/models/properties.php


if ($limit = $params->get('limit', 4)) {


And change the limit 4 to your desired number

-Thanks


Hi, I have the same problem with the city filter, I changed the code if ($limit = $params->get('limit', 4)) { for "limit", 15, but it does not work, only 2 cities appear and it is changed to the last city that I upload.

attached image

Thanks for your help.

Attachments (3)

  • Image-1-compressor.jpg
    Image-1-compressor.jpg 327.2 KB
  • Image-2-compressor.jpg
    Image-2-compressor.jpg 277.6 KB
  • Image-3-compressor.jpg
    Image-3-compressor.jpg 229.9 KB

Toufiq - Staff

More than a month ago #Permalink
Hi,

Find out the code from this file
components/com_spproperty/models/properties.php


if ($limit = $params->get('limit', 4)) {


And change the limit 4 to your desired number

-Thanks


Hi, I have the same problem with the city filter, I changed the code if ($limit = $params->get('limit', 4)) { for "limit", 15, but it does not work, only 2 cities appear and it is changed to the last city that I upload.

attached image

Thanks for your help.


Hi there, Please provide me the Joomla administrator access & FTP access via PM. Thanks


There are no replies made for this post yet.
Be one of the first to reply to this post!

Leaderboard (30 days)

Paul Frankowski

Paul Frankowski

Total Accepted Answers: 98
Toufiq

Toufiq

Total Accepted Answers: 51
Sifat

Sifat

Total Accepted Answers: 38
Ofi Khan

Ofi Khan

Total Accepted Answers: 21
Mehtaz Afsana Borsha

Mehtaz Afsana Borsha

Total Accepted Answers: 21

119

Templates

306691

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us