Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Searchbox in Breadcrumb

Searchbox in Breadcrumb

Locked

Views: 1,257

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
22 Jul 2007, 3:09 AM
#1
soggychicken avatar

soggychicken

New Zenner

Join Date:
Jul 2007
Posts:
12
Plugin Contributions:
0

Searchbox in Breadcrumb

Sorry if this has been asked already, I did a quick search and found nothing.

Is it possible to have the search box in the breadcrumbs?

22 Jul 2007, 3:11 AM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,627
Plugin Contributions:
0

Re: Searchbox in Breadcrumb

Almost anything is possible.

You could try moving the code for the search from the tpl_header.php to the tpl_main_page.php

22 Jul 2007, 3:50 AM
#3
soggychicken avatar

soggychicken

New Zenner

Join Date:
Jul 2007
Posts:
12
Plugin Contributions:
0

Re: Searchbox in Breadcrumb

I think I located the search code in tpl_header.php:

<div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>

The trouble is I don't know where to inject it into tpl_main_page.php.

Putting it directly after

<div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>

doesn't seem to do anything.

The page is http://www.fashionfiesta.ca/zencart. I want the search input field to right-align so it appears under the logo.

I guess it's no biggie if it's not possible, but it'd be something that's nice to have.

Thanks in advance.

22 Jul 2007, 3:55 AM
#4
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,627
Plugin Contributions:
0

Re: Searchbox in Breadcrumb

Make sure you have the search enabled for the Single Column status only in the Admin> Tools> Layout Boxes Controller

22 Jul 2007, 3:58 AM
#5
soggychicken avatar

soggychicken

New Zenner

Join Date:
Jul 2007
Posts:
12
Plugin Contributions:
0

Re: Searchbox in Breadcrumb

A-HA! It's perfect! :)

Thank you very much for the quick response, I wasn't expecting to get it so quickly!

22 Jul 2007, 4:04 AM
#6
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,627
Plugin Contributions:
0

Re: Searchbox in Breadcrumb

No problem - happened to be in the right place at the right time.

Don't forget the coffee fund. :D

22 Jul 2007, 4:13 AM
#7
soggychicken avatar

soggychicken

New Zenner

Join Date:
Jul 2007
Posts:
12
Plugin Contributions:
0

Re: Searchbox in Breadcrumb

Great.. just showed it to the client cause she asked for it in the first place and now she doesn't like it.

Oh well at least I learned something.

Will be glad to buy you guys a coffee. Cheers.

22 Jul 2007, 5:03 AM
#8
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,627
Plugin Contributions:
0

Re: Searchbox in Breadcrumb

Clients - gotta' love'em.