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.
Title: Re: Search Model by Default
Post by: timlight10 on June 09, 2026, 09:18:48 PM
It would be great for this to be available as an admin setting, as I have to change this file every time I upgrade the cart. This is an important search for the type of product I sell.
Title: Re: Search Model by Default
Post by: southwesterlydiscipline on June 23, 2026, 05:24:44 AM
Totally agree — this really should be an admin setting instead of a template edit. Having to reapply it after every update is quite inconvenient, especially for something as important as search behavior.
Title: Re: Search Model by Default
Post by: subjectdistribu on June 24, 2026, 05:12:07 AM
I agree. Having to reapply the same modification after every upgrade can be frustrating. A simple admin option to enable model search in the top search bar would make maintenance much easier.