*

gnolino

  • **
  • 16 posts
Sort result by customer field by default
« on: January 12, 2021, 07:45:51 AM »
HI,
I need to extract results from a custom field into search page by default.
I added a new rank field and I must order results on search page reffering this.
I spent lot of time to try to understund where I can query the db but invane.
I have not idea how can I do that.
Please help me
« Last Edit: January 12, 2021, 07:50:18 AM by gnolino »

*

MB Themes

Re: Sort result by customer field by default
« Reply #1 on: January 12, 2021, 10:28:21 AM »
@gnolino
That is hard task and require to add custom fields tables and values into search model.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

gnolino

  • **
  • 16 posts
Re: Sort result by customer field by default
« Reply #2 on: January 12, 2021, 12:29:50 PM »
Thanks for your answer. I'll try to find an expert to write the code.
When you said "search model" you mean the script that query db?
I think I can find it into model/search.php on line 80
Thank for you attention
« Last Edit: January 12, 2021, 12:41:51 PM by gnolino »