Display the search box in the header only

Zen Cart Display the search box in the header only

There are two sideboxes for search. You can control both through the Admin > Tools > Layout Box Controller.

The search.php sidebox is a conventional sidebox and can be turned on and off as normal. If you want search in the header, you will normally turn this sidebox off, though it does have the advantage of providing a link to the advanced search page.

The search_header.php sidebox is specifically designed to display a search box in your Zen Cart header and so doesn’t output all the HTML needed for a sidebox. It is recommended therefore that you ensure that its left/right column status is set to OFF. To display it in the header, set the single column status to ON.

Still have questions? No problem! Just head over to the Zen Cart support forum and ask there.
In your post, please include your Zen Cart and PHP versions, and a link to your site.

Last modified March 23, 2020 by Scott C Wilson (7eff069).