Author Topic: Search Model by Default  (Read 891 times)

Offline cartagan

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Search Model by Default
« 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?

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2110
  • Karma: +332/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Search Model by Default
« Reply #1 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
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline cartagan

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Search Model by Default
« Reply #2 on: March 12, 2025, 07:32:04 AM »
Thank you for the excellent answer, this worked perfectly.

 

Powered by SMFPacks Social Login Mod