Advertisement:

Author Topic: Displaying links to 'Top Searches' on top of the item page.  (Read 76 times)

BritWeb

  • Hero Member
  • *****
  • Posts: 681
  • If it ain't broke, don't fix it.
Displaying links to 'Top Searches' on top of the item page.
« on: March 28, 2019, 11:16:00 pm »
Hi

Just wondering if there is way we can display links to 'Top Searches' on top of the item page related to the item being displayed. I know the searches are stored in the database and it's a question of sorting and pulling out the right info and displaying them as links. Please see the pic attached that explains my requirement.

Thanks in advance for any feedback.

« Last Edit: March 28, 2019, 11:21:08 pm by BritWeb »

fmohsen

  • Newbie
  • *
  • Posts: 30
Re: Displaying links to 'Top Searches' on top of the item page.
« Reply #1 on: April 24, 2019, 12:25:12 pm »
Hi
you would use from functions in hSearch.php
get last search : osc_get_latest_searches();
get number search: osc_count_latest_searches();
and more function