CatalogSearch.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. 'catalogsearch' => [
  11. 'class' => '\fecshop\app\appserver\modules\Catalogsearch\Module',
  12. /**
  13. * 模块内部的params配置。
  14. */
  15. 'params'=> [
  16. 'categorysearch_filter_attr' =>[
  17. 'color','size',
  18. ],
  19. // 搜索页面的title 格式 ,%s 将会被替换成搜索词
  20. 'search_page_title_format' => 'Search Text: %s ',
  21. // 搜索页面的 meta keywords格式 ,%s 将会被替换成搜索词
  22. 'search_page_meta_keywords_format' => 'Search Text: %s ',
  23. // 搜索页面的 meta description格式 ,%s 将会被替换成搜索词
  24. 'search_page_meta_description_format' => 'Search Text: %s ',
  25. // 搜索的最大个数
  26. 'product_search_max_count' => 1000,
  27. // 搜索页面是否开启面包屑导航
  28. 'search_breadcrumbs' => true,
  29. //'search_filter_category' => true,
  30. 'search_query' =>[
  31. // 放到第一个的就是默认值,譬如下面的30
  32. 'numPerPage' => [6,30, 60, 90], // 产品显示个数的列举
  33. // 价格区间设置,如果不想在搜索页面价格过滤,可以清空这个。
  34. 'price_range' => [
  35. '0-10',
  36. '10-20',
  37. '20-30',
  38. '30-50',
  39. '50-100',
  40. '100-150',
  41. '150-300',
  42. '300-500',
  43. '500-1000',
  44. '1000-',
  45. ],
  46. ],
  47. ],
  48. ]
  49. ];