Jump to content

Vic360v

Members
  • Posts

    5
  • Joined

  • Last visited

About Vic360v

  • Birthday 09/23/1993

Profile Information

  • Location
    Asuncion - Paraguay
  • Activity
    Developer

Vic360v's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Did you try to use the weight function? (preferences>search) you can give a greater weight to the name i.e. (or where you think it would be better) Anyways i do not recomend you to use this code in your case, because it gives a lot of work to the search engine. instead you can use the tags or the alias to make the search more efficient. Regards.
  2. It seems that they are using this module with some style modifications. http://addons.prestashop.com/es/busqueda-filtros-prestashop-modulos/2778-advanced-search-4-best-module-award-2012.html
  3. Then, you can modify the file (.../classes/search.php) to substring all the searches with (%) variable or whatever you want. From line 190 to 197 AND sw.word LIKE '.($word[0] == '-' ? ' \''.pSQL(Tools::substr($word, 1, PS_SEARCH_MAX_WORD_LENGTH)).'%\'' : '\''.pSQL(Tools::substr($word, 0, PS_SEARCH_MAX_WORD_LENGTH)).'%\'' ); if ($word[0] != '-') $score_array[] = 'sw.word LIKE \''.pSQL(Tools::substr($word, 0, PS_SEARCH_MAX_WORD_LENGTH)).'%\''; Like this AND sw.word LIKE '.($word[0] == '-' ? ' \'%'.pSQL(Tools::substr($word, 1, PS_SEARCH_MAX_WORD_LENGTH)).'%\'' : '\'%'.pSQL(Tools::substr($word, 0, PS_SEARCH_MAX_WORD_LENGTH)).'%\'' ); if ($word[0] != '-') $score_array[] = 'sw.word LIKE \'%'.pSQL(Tools::substr($word, 0, PS_SEARCH_MAX_WORD_LENGTH)).'%\''; But with this the search makes much more effort and the performance probably will be affected or can cause an overload. it would be better to use something like a wildcard, but I don't know of any on presta.
  4. I know this thread is from a month ago, but this cuestion still last. is it posible to use the layered block navigation on the home page?
×
×
  • Create New...