Friday 15 January 2010

php - OpenCart 2.0.1.1 search description -


The default Opencart 2.0.1.1 search is in the product names. How can I do the default search in product names and details?

In my case, I just need to search results always include 'search in details' That's why I searched the file catalog / controller / product / Php

  $ filter_data = array ('filter_name' = & gt; $ search, 'filter_tag)' will change the code below '= & gt; $ Tag, 'filter_description' = & gt; $ Description, 'filter_category_id' = & gt; $ Category_id, 'filter_sub_category' = & gt; $ Sub_category, 'sort' = & gt; $ Sort, 'order' = & gt; $ Order, 'start' = & gt; ($ Page - 1) * $ range, 'border' = & gt; $ Border); $ Filter_data = array ('filter_name' = & gt; $ search, 'filter_tag' = & gt; $ tag, 'filter_details') from  

to

= & Gt; 'right', 'filter_category_id' = & gt; $ category_id, 'filter_sub_category' = & gt; $ sub_category, 'sort' => $ sort, 'order' = & gt; $ command, 'start '= & Gt; ($ page - 1) * $ border,' border '= & gt; $ limit);

But if you always want to always make the other default you may need more effort on this file. Hope this can help.


No comments:

Post a Comment