Jump to content

How to change prestashop search function?


alexT

Recommended Posts

Hi,

i am using the standard classic template (default)

I want to change the search bar parameters such as , form action, placeholder, etc.

I have found the file:

themes/classic/modules/ps_searchbar/ps_searchbar.tpl

it contains the following:

<!-- Block search module TOP -->
<DIV id="search_widget" class="col-lg-4 col-md-5 col-sm-12 search-widget" data-search-controller-url="{$search_controller_url}">
	<FORM method="get" action="{$search_controller_url}">
		<INPUT type="hidden" name="controller" value="search">
		<INPUT type="text" name="s" value="{$search_string}" placeholder="{l s='Search our catalog' d='Shop.Theme.Catalog'}" aria-label="{l s='Search' d='Shop.Theme.Catalog'}">
		<BUTTON type="submit">
			<I class="material-icons search">&#xE8B6;</I>
      <SPAN class="hidden-xl-down">{l s='Search' d='Shop.Theme.Catalog'}</SPAN>
		</BUTTON>
	</FORM>
</DIV>
<!-- /Block search module TOP -->

 

But when i change this code, it does not effect my searchbar.

even when i delete this code, my searchbar still works. so i assume this is not the correct way to modify the search bar?

what is the correct file???


THANKS!!!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...