OS Property support center

New search filter field : pagination problem

  • Cyber Marchands
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago #138733 by Cyber Marchands
New search filter field : pagination problem was created by Cyber Marchands
Hi,

I added a new field for the search filter. It works fine but when we change page, nothing appears. It seems that some url params are added when we change pagination :

Code:
?category_ids[]=3&category_ids[]=4&property_type=3&min_price=0&max_price=3000&keyword=&sortby=a.isFeatured&orderby=desc&address=&state_id=52&city=&postcode=&se_geoloc=&radius_search=5&nbath=&nbed=&nfloors=&nroom=2&advfieldLists=&currency_item=&live_site=http%3A%2F%2Flocalhost%2Fles-regisseurs%2F&limitstart=20&process_element=&option=com_osproperty&task=property_advsearch&show_more_div=0&Itemid=151&search_param=catid%3A3_catid%3A4_type%3A3_type%3A3_country%3A176_nroom%3A2_nroommax%3A5_max_price%3A3000_sortby%3Aa.isFeatured_orderby%3Adesc&list_id=0&adv_type=3&show_advancesearchform=0&advtype_id_1=&advtype_id_2=&advtype_id_3=&advtype_id_4=&advtype_id_5=&advtype_id_6=

If I add my search option in params : &nroommax=5, it seems to work.

My question : where I can add this option in your code?

Thanks and best regards,

Please Log in or Create an account to join the conversation.

More
3 years 6 months ago #138736 by Mr. Dam
Replied by Mr. Dam on topic New search filter field : pagination problem
Hi,
If you add "&nroom=ABC", it will works
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • Cyber Marchands
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 5 months ago #138738 by Cyber Marchands
Replied by Cyber Marchands on topic New search filter field : pagination problem
Thanks for your quick anwser.

Yes, I know but where can I add this information? The pagination button seems to have a JS event and I don't know where to put "&nroom=ABC".

Could you help me please?

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #138747 by Mr. Dam
Replied by Mr. Dam on topic New search filter field : pagination problem
Hi,
I thought you want to add the search parameters into the search link, it's impossible to add the parameters into the page navigation.
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • Cyber Marchands
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 5 months ago - 3 years 5 months ago #138749 by Cyber Marchands
Replied by Cyber Marchands on topic New search filter field : pagination problem
Hi,

I added my field in the search module with an input named "nroomax".

When I click the search button, the value is got in
Code:
OspropertyListing Class
and then in
Code:
advSearch method.

I added a simple DB where clause and everything works fine in the first page (when we have the first 20 results). In my case, I have 59 results in total with this request.

The problem is when I go to the next page, I don't have my input nroom max anymore... So my DB request doesn't work and in the second page I have no results.

I can just see that when I click the second page in pagination there are more params that are added in URL. (see my first post)

So my question : How can I add my new params in url when I click the second button (Page 2) in the pagination to see next results?
Last edit: 3 years 5 months ago by Cyber Marchands.

Please Log in or Create an account to join the conversation.

  • Cyber Marchands
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 5 months ago #138750 by Cyber Marchands
Replied by Cyber Marchands on topic New search filter field : pagination problem
Page 1






Page 2

Please Log in or Create an account to join the conversation.

  • Cyber Marchands
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 5 months ago #139056 by Cyber Marchands
Replied by Cyber Marchands on topic New search filter field : pagination problem
Thanks a lot for your support...

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamNguyen Phu Quan