villagedefrance / OpenCart-Overclocked

OpenCart Overclocked Edition. Advanced Shopping Cart CMS based on OC v1.5.6.X source code.
https://villagedefrance.net
Other
31 stars 22 forks source link

Frontend Search Returns No results v.1.11.0 - Fix #184

Closed Sp1kee closed 6 years ago

Sp1kee commented 6 years ago

Search returns No Results at "index.php?route=product/search" (frontend). To fix the issue open "catalog\view\theme\default\template\product\search.tpl" in an editor. In lines 161 and 170 change the ".attr('value')" to ".prop('value')" (omit the quotes)

The changes in detail are: Line 161: var search = $('#content input[name=\'search\']').attr('value'); Change to: var search = $('#content input[name=\'search\']').prop('value'); Line 170: var category_id = $('#content select[name=\'category_id\']').attr('value'); Change to: var category_id = $('#content select[name=\'category_id\']').prop('value');

villagedefrance commented 6 years ago

Catalog Search code has been updated and should be working fine now. Thank you.