Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / "Fancy" Advanced Search Question

"Fancy" Advanced Search Question

Views: 695

Results 1 to 9 of 9
4 Jun 2015, 5:32 AM
#1
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

"Fancy" Advanced Search Question

Quite a long time ago, someone on this forum showed me how to get these cool search results, when a product that I had in my store was searched.

As an example, I typed Calvin Klein in the search box and it brought up this page. Please note how the heading reads (Your Search Results For "calvin klein"):

http://www.designerperfumesnob.com/index.php?main_page=advanced_search_result&search_in_description=1&keyword=calvin+klein&x=0&y=0

I can't seem to find that code or understand where I would need to go to recreate this for my new v1.54/responsive template that is underway.

This is so much better looking than just returning with result: Advanced Search

How can I get this result again?

Thanks!

4 Jun 2015, 3:22 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: "Fancy" Advanced Search Question

Suggest that you compare your search based files to stock files to see what has been changed
If you have followed the overrides protocol this should be easy

4 Jun 2015, 9:16 PM
#3
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: "Fancy" Advanced Search Question

kobra:

Suggest that you compare your search based files to stock files to see what has been changed
If you have followed the overrides protocol this should be easy

I have found this:

<?php define('HEADING_TITLE_START', 'Your Search Results For<font color="#39d4d4"> "'); define('HEADING_TITLE_END', '"</font>'); ?>

And this:

define('HEADING_TITLE', 'Your Search Results For<font color="#39d4d4">
</font>');

and while I am now able to get a little more in the heading:

http://storetest.designerperfumesnob.com/index.php?main_page=advanced_search_result&search_in_description=1&keyword=lancome

...it doesn't complete the search by adding the search term to the result.

5 Jun 2015, 2:55 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: "Fancy" Advanced Search Question

I have found this:
In what file??? and is it different than a stock file???

5 Jun 2015, 5:05 AM
#5
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: "Fancy" Advanced Search Question

kobra:

In what file??? and is it different than a stock file???

This is from the advanced_search_results.php for the live store still using 1.38h:

<?php define('HEADING_TITLE_START', 'Your Search Results For<font color="#39d4d4"> "'); define('HEADING_TITLE_END', '"</font>'); ?>

http://www.designerperfumesnob.com/index.php?main_page=advanced_search_result&search_in_description=1&keyword=lancome&x=6&y=17

This is from advanced_search_results.php for the test store:

define('HEADING_TITLE', 'Your Search Results For<font color="#39d4d4">
</font>');

http://storetest.designerperfumesnob.com/index.php?main_page=advanced_search_result&search_in_description=1&zenid=594bd01c55b735d708216905ee8d8541&keyword=lancome

I cannot locate anything else.

Thanks!

5 Jun 2015, 6:02 AM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: "Fancy" Advanced Search Question

This is from the advanced_search_results.php
That file is mostly a language file and not a process file

You might check and compare these especially if you have a template override file for any of them
includes/templates/template_default/templates/tpl_advanced_search_result_default.php
includes/templates/template_default/templates/tpl_advanced_search_default.php
Also look at these and compare
includes/modules/pages/advanced_search/header_php.php
includes/modules/pages/advanced_search_result/header_php.php

5 Jun 2015, 5:14 PM
#7
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: "Fancy" Advanced Search Question

kobra:

That file is mostly a language file and not a process file

You might check and compare these especially if you have a template override file for any of them
includes/templates/template_default/templates/tpl_advanced_search_result_default.php
includes/templates/template_default/templates/tpl_advanced_search_default.php
Also look at these and compare
includes/modules/pages/advanced_search/header_php.php
includes/modules/pages/advanced_search_result/header_php.php

With your help I was able to identify the files I needed. Thank you for saving me all of the time I might have spent chasing this down. Now I can get on with the business of going live with the new responsive template.

Thank you again!

5 Jun 2015, 6:57 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: "Fancy" Advanced Search Question

traytray:

With your help I was able to identify the files I needed
I refer you to my first post
kobra:

Suggest that you compare your search based files to stock files to see what has been changed
If you have followed the overrides protocol this should be easy
With over 500 posts you should be assisting us by helping yourself

5 Jun 2015, 10:39 PM
#9
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: "Fancy" Advanced Search Question

kobra:

I refer you to my first post

With over 500 posts you should be assisting us by helping yourself

I never post here lightly. This is always considered help of last resort. Just because I have many posts doesn't mean I can always figure things out. From time to time I'd like to believe I can post here with something that stumps me and receive help from those that understand this better. Many of the tweaks I made to my original template occurred years ago and I have never had to relate to them. I don't think along the lines of language file vs. process file.

I hope this forum can indulge me when I turn to those that think more like a coder than I do. It's very possible that someone reading a thread I start might find the topic interesting and follow along. In this case, the search results that I was seeking is a very nice addition to anyone with an ecommerce site. I think it makes the visitor feel special because the search results were returned with their specific need. That can never be a bad thing to share with other Zen Cart users.