Zen Cart Logo
Forums / General Questions / how to detect im on search page

how to detect im on search page

Views: 864

Results 1 to 3 of 3
29 Jan 2017, 9:50 AM
#1
bn17311 avatar

bn17311

Zen Follower

Join Date:
Apr 2010
Posts:
319
Plugin Contributions:
0

how to detect im on search page

hi,
on my zencart i have bikes and part

on bikes i make the product listing larger to display the attributes

http://www.onyourbike.co.uk/index.php?main_page=index&cPath=1_413

on parts smaller

http://www.onyourbike.co.uk/index.php?main_page=index&cPath=446_158

but then if search for something i get mixed sizes

http://www.onyourbike.co.uk/index.php?main_page=advanced_search_result&search_in_description=1&keyword=mantra&x=0&y=0

so i want to detect search page and alter all to 1 size

so all i need is the code to detect you are displaying the results on the search page

thanks
Bryan

29 Jan 2017, 12:11 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,096
Plugin Contributions:
56

Re: how to detect im on search page

Nice site, Bryan. You could make use of the jquery_matchHeight.js processing that's built into the Zen Cart 1.5.5 responsive_classic template.

You'll need to see what the requirements for that jQuery module are (for its initialization), but I believe that you can adapt its use to specifically your advanced_search_results page's handling.

29 Jan 2017, 3:00 PM
#3
bn17311 avatar

bn17311

Zen Follower

Join Date:
Apr 2010
Posts:
319
Plugin Contributions:
0

Re: how to detect im on search page

thanks, it was a bought template which i sort of modify along the way, the attributes on the bike pages etc for all the sizing availability

any way just got a solution, the ```php
$_GET['keyword']


i just wanted all boxes same size on search page

thanks for your help.