antonio04 Posted September 11, 2018 Share Posted September 11, 2018 Good morning, I need help with prestashop 1.7.3 I need to change the settings in the admin search box I would like to make sure that the default setting is set to catalog and not to general search Can you tell me which file I need to edit? Grazie Link to comment Share on other sites More sharing options...
Rolige Posted September 11, 2018 Share Posted September 11, 2018 Hello, In the file: /back-office-folder/themes/default/template/search_form.tpl In the dropdown, change the class "active" to the option you need left as default. Regards! Link to comment Share on other sites More sharing options...
antonio04 Posted September 11, 2018 Author Share Posted September 11, 2018 You're very kind, I'm not an expert This is the code I would like to make the search by default in the catalogCan I get what I have to change? <ul id="header_search_options" class="dropdown-menu"> <li class="search-all search-option active"> <a href="#" data-value="0" data-placeholder="{l s='What are you looking for?' d='Admin.Navigation.Header'}" data-icon="icon-search"> <i class="icon-search"></i> {l s='Everywhere' d='Admin.Navigation.Header'}</a> </li> <li class="divider"></li> <li class="search-book search-option"> <a href="#" data-value="1" data-placeholder="{l s='Product name, SKU, reference...' d='Admin.Navigation.Header'}" data-icon="icon-book"> <i class="icon-book"></i> {l s='Catalog' d='Admin.Navigation.Menu'} </a> </li> <li class="search-customers-name search-option"> <a href="#" data-value="2" data-placeholder="{l s='Email, name...' d='Admin.Navigation.Header'}" data-icon="icon-group"> <i class="icon-group"></i> {l s='Customers by name' d='Admin.Navigation.Header'} </a> </li> <li class="search-customers-addresses search-option"> <a href="#" data-value="6" data-placeholder="{l s='123.45.67.89'}" data-icon="icon-desktop"> <i class="icon-desktop"></i> {l s='Customers by IP address' d='Admin.Navigation.Header'}</a> </li> <li class="search-orders search-option"> <a href="#" data-value="3" data-placeholder="{l s='Order ID' d='Admin.Navigation.Header'}" data-icon="icon-credit-card"> <i class="icon-credit-card"></i> {l s='Orders' d='Admin.Global'} </a> </li> <li class="search-invoices search-option"> <a href="#" data-value="4" data-placeholder="{l s='Invoice Number' d='Admin.Navigation.Header'}" data-icon="icon-book"> <i class="icon-book"></i> {l s='Invoices' d='Admin.Navigation.Menu'} </a> </li> <li class="search-carts search-option"> <a href="#" data-value="5" data-placeholder="{l s='Cart ID' d='Admin.Navigation.Header'}" data-icon="icon-shopping-cart"> <i class="icon-shopping-cart"></i> {l s='Carts' d='Admin.Global'} </a> </li> <li class="search-modules search-option"> <a href="#" data-value="7" data-placeholder="{l s='Module name' d='Admin.Navigation.Header'}" data-icon="icon-puzzle-piece"> <i class="icon-puzzle-piece"></i> {l s='Modules' d='Admin.Global'} </a> </li> </ul> Link to comment Share on other sites More sharing options...
Knowband Plugins Posted September 12, 2018 Share Posted September 12, 2018 In the search form, make the following changes & check again. Replace <input type="hidden" name="bo_search_type" id="bo_search_type" /> with <input type="hidden" name="bo_search_type" id="bo_search_type" value="1" /> Link to comment Share on other sites More sharing options...
antonio04 Posted September 12, 2018 Author Share Posted September 12, 2018 Thanks thanks thanks..... I lost a lot of time without having found a solution. Now it works, you are very kind. Now I try to modify the form also on the admin / product page With your directions maybe I can, thanks again Link to comment Share on other sites More sharing options...
antonio04 Posted September 14, 2018 Author Share Posted September 14, 2018 Still a help. The modification works but only on the main page. In the product page the search form is different and I do not know in the file you find. Link to comment Share on other sites More sharing options...
Knowband Plugins Posted September 14, 2018 Share Posted September 14, 2018 4 hours ago, antonio04 said: Still a help. The modification works but only on the main page. In the product page the search form is different and I do not know in the file you find. Kindly back the same changes in the themes/new-theme/template/components/layout/search_form.tpl Replace this <input type="hidden" name="bo_search_type" id="bo_search_type" class="js-search-type" /> with <input type="hidden" name="bo_search_type" id="bo_search_type" class="js-search-type" value="1"/> I hope it will help. Kindly hit like button if your query is resolved & also mark the thread as Solved Link to comment Share on other sites More sharing options...
antonio04 Posted September 15, 2018 Author Share Posted September 15, 2018 Thanks, it works great, you're really very kind Link to comment Share on other sites More sharing options...
Knowband Plugins Posted September 15, 2018 Share Posted September 15, 2018 Great Link to comment Share on other sites More sharing options...
Luca S. Posted October 3, 2021 Share Posted October 3, 2021 Hello Guys, I would like to put in PS 1.7.7.2 the column of number of pieces available (stock) of a certain products in the back office search, such as PS 1.6. Currently this version doesn't show the remaining pieces of a certain product. Check attached image. How to? Link to comment Share on other sites More sharing options...
Luca S. Posted October 12, 2021 Share Posted October 12, 2021 no news? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now