Hello.
Is it possible please after I made a search to have an empty the search field and not keeps the text I have search about in the search results ?? http://prntscr.com/uyr2yr
Using Opencart 3.0.3.6
Thanks
Is it possible please after I made a search to have an empty the search field and not keeps the text I have search about in the search results ?? http://prntscr.com/uyr2yr
Using Opencart 3.0.3.6
Thanks
Last edited by iplocker on Wed Oct 14, 2020 5:35 am, edited 1 time in total.
Just remove the default value {{search}} from your twig.
https://github.com/opencart/opencart/bl ... ch.twig#L2
https://github.com/opencart/opencart/bl ... ch.twig#L2
Last edited by sw!tch on Wed Oct 14, 2020 5:19 am, edited 1 time in total.
Backup and learn how to recover before you make any changes!
Change search.twig to
But nothing happend (I have clear cache too )
Thanks
Code: Select all
<div id="search" class="input-group">
<input type="text" name="search" value="" placeholder="{{ text_search }}" class="form-control input-lg" />
<span class="input-group-btn">
<button type="button" class="btn btn-default btn-lg"><i class="fa fa-search"></i></button>
</span>
</div>
Thanks
Assuming you are using default theme....Find catalog/view/theme/default/template/common/search.tplbuypowerbg wrote: ↑Tue Jan 12, 2021 3:54 pmwhat about the version 2.3.0.2 ?
how to solve this problem?
And change to
Code: Select all
<div id="search" class="input-group">
<input type="text" name="search" value="" placeholder="<?php echo $text_search;?>" class="form-control input-lg" />
<span class="input-group-btn">
<button type="button" class="btn btn-default btn-lg"><i class="fa fa-search"></i></button>
</span>
</div>
Get a secure, fast, and reliable web hosting service from https://turnuphosting.com/opencart-hosting/.
Who is online
Users browsing this forum: No registered users and 31 guests