Jump to content

Change back and search box


antonio04

Recommended Posts

You're very kind, I'm not an expert
This is the code

I would like to make the search by default in the catalog
Can 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

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.

 

2018-09-14 11_53_04-Window.jpg

 

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

  • 3 years later...

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?

Schermata 2021-10-03 alle 09.11.17.png

Link to comment
Share on other sites

  • 2 weeks later...

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...