CatalogSearch.php 1.6 KB

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