Catalogsearch.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. /**
  3. * FecShop file.
  4. *
  5. * @link http://www.fecshop.com/
  6. * @copyright Copyright (c) 2016 FecShop Software LLC
  7. * @license http://www.fecshop.com/license/
  8. */
  9. return [
  10. /**
  11. * Catalogsearch 模块的配置,您可以在@appfront/config/fecshop_local_modules/Catalogsearch.php
  12. * 中进行配置,二开,或者重写该模块(在上面路径中如果文件不存在,自行新建配置文件。)
  13. */
  14. 'catalogsearch' => [
  15. 'class' => '\fecshop\app\appfront\modules\Catalogsearch\Module',
  16. /**
  17. * 模块内部的params配置。
  18. */
  19. 'params'=> [
  20. //'categorysearch_filter_attr' =>[
  21. // 'color','size',
  22. //],
  23. // 搜索页面的title 格式 ,%s 将会被替换成搜索词
  24. 'search_page_title_format' => 'Search Text: %s ',
  25. // 搜索页面的 meta keywords格式 ,%s 将会被替换成搜索词
  26. 'search_page_meta_keywords_format' => 'Search Text: %s ',
  27. // 搜索页面的 meta description格式 ,%s 将会被替换成搜索词
  28. 'search_page_meta_description_format' => 'Search Text: %s ',
  29. // 搜索的最大个数
  30. 'product_search_max_count' => 1000,
  31. // 搜索页面是否开启面包屑导航
  32. 'search_breadcrumbs' => false,
  33. //'search_filter_category' => true,
  34. 'search_query' =>[
  35. // 放到第一个的就是默认值,譬如下面的30
  36. 'numPerPage' => [30, 60, 90], // 产品显示个数的列举
  37. // 价格区间设置,如果不想在搜索页面价格过滤,可以清空这个。
  38. 'price_range' => [
  39. '0-10',
  40. '10-20',
  41. '20-30',
  42. '30-50',
  43. '50-100',
  44. '100-150',
  45. '150-300',
  46. '300-500',
  47. '500-1000',
  48. '1000-',
  49. ],
  50. ],
  51. ],
  52. ],
  53. ];