AbanteCart Community

eCommerce construction => General Discussion => Topic started by: cartagan on March 11, 2025, 03:36:02 PM

Title: Search Model by Default
Post by: cartagan on March 11, 2025, 03:36:02 PM
I've done searching and come across a few threads but so far I have not been able to search by model from the top search bar. You have to go into the search and check the box. All of the suggestions don't affect the search functionality. If it matters, I'm using the Novator template. Any other suggestions?
Title: Re: Search Model by Default
Post by: abolabo on March 12, 2025, 05:06:50 AM
open file public_html/extensions/novator/storefront/view/novator/template/blocks/search_top.tpl
and add <input type="hidden" name="model" value="1"/>
inside <form> tag.
Note: if you plan to upgrade cart in the future this modification will be overwritten
Title: Re: Search Model by Default
Post by: cartagan on March 12, 2025, 07:32:04 AM
Thank you for the excellent answer, this worked perfectly.