config.php 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. <?php
  2. /**
  3. * Fect File
  4. * @author terry
  5. */
  6. // set namespace alisa
  7. Yii::setAlias('@fectfurnilife', dirname(dirname(dirname(__DIR__))).'/addons/fecmall/furnilife_theme/');
  8. return [
  9. // 插件信息
  10. 'info' => [
  11. 'name' => 'theme_furnilife',
  12. 'title' => 'furnilife theme',
  13. 'description' => 'furnilife theme',
  14. 'author' => 'terry',
  15. ],
  16. // 插件管理部分
  17. 'administer' => [
  18. 'install' => [
  19. 'class' => 'fectfurnilife\administer\Install',
  20. // 其他引入的属性,类似yii2组件的方式写入即可
  21. 'test' => 'test_data',
  22. ],
  23. 'upgrade' => [
  24. 'class' => 'fectfurnilife\administer\Upgrade',
  25. ],
  26. 'uninstall' => [
  27. 'class' => 'fectfurnilife\administer\Uninstall',
  28. ],
  29. ],
  30. // 各个入口的配置
  31. 'app' => [
  32. // 1.appfront层
  33. 'appfront' => [
  34. // appfront入口的开关,如果false,则会失效
  35. 'enable' => true,
  36. 'config' => [
  37. // yii class rewrite map
  38. 'yiiClassMap' => [
  39. ],
  40. // 重写model和block
  41. 'fecRewriteMap' => [
  42. '\fecshop\app\appfront\modules\Cms\block\home\Index' => '\fectfurnilife\app\appfront\modules\Cms\block\home\Index',
  43. '\fecshop\app\appfront\modules\Customer\block\address\Edit' => '\fectfurnilife\app\appfront\modules\Customer\block\address\Edit',
  44. ],
  45. 'modules' => [
  46. 'catalog' => [
  47. /**
  48. * Yii2 controllerMap 重写机制。
  49. */
  50. 'params'=> [
  51. //##############################
  52. //# Product部分设置 ##
  53. //##############################
  54. // 产品页面图片的设置
  55. 'productImgSize' => [
  56. //'small_img_width' => 103, // 底部小图的宽度
  57. //'small_img_height' => 103, // 底部小图的高度
  58. //'middle_img_width' => 470, // 主图的宽度
  59. ],
  60. ],
  61. ],
  62. 'checkout' => [
  63. 'controllerMap' => [
  64. 'cartinfo' => 'fectfurnilife\app\appfront\modules\Checkout\controllers\CartInfoController',
  65. ],
  66. ],
  67. 'cms' => [
  68. 'controllerMap' => [
  69. 'home' => 'fectfurnilife\app\appfront\modules\Cms\controllers\HomeController',
  70. ],
  71. 'params' => [
  72. // 首页的Feature Products部分的sku列表
  73. 'home_featured_products' => [
  74. 'p10001-kahaki-xxl-t4', 'p10001-black0-xl', 'op0002-33', 'men0003', 'sk0002', 'sk0008'
  75. ],
  76. // 首页的New Products部分的sku列表
  77. 'home_new_products' => [
  78. 'sk10004-001', 'sk10003-001', 'sk10002-002', 'sk10002', 'sk1000-khak', 'po0001'
  79. ],
  80. // 首页的OnSale部分的sku列表
  81. 'home_onsale_products' => [
  82. 'p10001-kahaki-l', 'sk10003-001', 'p10001-black0-xl', 'men0003', 'sk10004-001', 'sk10002', 'sk1000-khak', 'po0001',
  83. ],
  84. // 首页楼层部分,一层的配置。
  85. 'home_floor_one' => [
  86. 'slider' => [
  87. 'title' => 'BEDROOM FURNITURE',
  88. 'items' => [
  89. [
  90. 'name' => 'Nightstands',
  91. 'url' => '/wedding-dresses',
  92. ],
  93. [
  94. 'name' => 'Beds',
  95. 'url' => '/wedding-dresses',
  96. ],
  97. [
  98. 'name' => 'HeadBoards',
  99. 'url' => '/wedding-dresses',
  100. ],
  101. [
  102. 'name' => 'Chests & Dressers',
  103. 'url' => '/wedding-dresses',
  104. ],
  105. [
  106. 'name' => 'Bedroom Sets',
  107. 'url' => '/wedding-dresses',
  108. ],
  109. [
  110. 'name' => 'Mattretsser',
  111. 'url' => '/wedding-dresses',
  112. ],
  113. [
  114. 'name' => 'Armories',
  115. 'url' => '/wedding-dresses',
  116. ],
  117. [
  118. 'name' => 'Small Beds',
  119. 'url' => '/wedding-dresses',
  120. ],
  121. [
  122. 'name' => 'Larger Beds',
  123. 'url' => '/wedding-dresses',
  124. ],
  125. ],
  126. ],
  127. 'product_skus' => [
  128. 'p10001-kahaki-xxl-t4', 'p10001-black0-xl', 'op0002-33', 'men0003', 'sk0002', 'sk0008'
  129. ],
  130. 'banner-text' => '<p>Look of The Week</p>
  131. <p class="big-text">Wood Frame Bedroom</p>
  132. <p>Only from $209</p>',
  133. ],
  134. // 首页楼层部分,2层的配置。
  135. 'home_floor_two' => [
  136. 'slider' => [
  137. 'title' => 'OUTDOOR FURNITURE',
  138. 'items' => [
  139. [
  140. 'name' => 'Nightstands',
  141. 'url' => '/wedding-dresses',
  142. ],
  143. [
  144. 'name' => 'Beds',
  145. 'url' => '/wedding-dresses',
  146. ],
  147. [
  148. 'name' => 'HeadBoards',
  149. 'url' => '/wedding-dresses',
  150. ],
  151. [
  152. 'name' => 'Chests & Dressers',
  153. 'url' => '/wedding-dresses',
  154. ],
  155. [
  156. 'name' => 'Bedroom Sets',
  157. 'url' => '/wedding-dresses',
  158. ],
  159. [
  160. 'name' => 'Mattretsser',
  161. 'url' => '/wedding-dresses',
  162. ],
  163. [
  164. 'name' => 'Armories',
  165. 'url' => '/wedding-dresses',
  166. ],
  167. [
  168. 'name' => 'Small Beds',
  169. 'url' => '/wedding-dresses',
  170. ],
  171. [
  172. 'name' => 'Larger Beds',
  173. 'url' => '/wedding-dresses',
  174. ],
  175. ],
  176. ],
  177. 'product_skus' => [
  178. 'sk10004-001', 'sk10003-001', 'sk10002-002', 'sk10002', 'sk1000-khak', 'po0001'
  179. ],
  180. 'banner-text' => '<p>Look of The Week</p>
  181. <p class="big-text">Minimal Chair Modern</p>
  182. <p>Only from $209</p>',
  183. ],
  184. // 首页楼层部分,2层的配置。
  185. 'home_floor_three' => [
  186. 'slider' => [
  187. 'title' => 'LIGHTING FURNITURE',
  188. 'items' => [
  189. [
  190. 'name' => 'Nightstands',
  191. 'url' => '/wedding-dresses',
  192. ],
  193. [
  194. 'name' => 'Beds',
  195. 'url' => '/wedding-dresses',
  196. ],
  197. [
  198. 'name' => 'HeadBoards',
  199. 'url' => '/wedding-dresses',
  200. ],
  201. [
  202. 'name' => 'Chests & Dressers',
  203. 'url' => '/wedding-dresses',
  204. ],
  205. [
  206. 'name' => 'Bedroom Sets',
  207. 'url' => '/wedding-dresses',
  208. ],
  209. [
  210. 'name' => 'Mattretsser',
  211. 'url' => '/wedding-dresses',
  212. ],
  213. [
  214. 'name' => 'Armories',
  215. 'url' => '/wedding-dresses',
  216. ],
  217. [
  218. 'name' => 'Small Beds',
  219. 'url' => '/wedding-dresses',
  220. ],
  221. [
  222. 'name' => 'Larger Beds',
  223. 'url' => '/wedding-dresses',
  224. ],
  225. ],
  226. ],
  227. 'product_skus' => [
  228. 'sk10004-001', 'sk10003-001', 'sk10002-002', 'sk10002', 'sk1000-khak', 'po0001'
  229. ],
  230. 'banner-text' => '<p>Look of The Week</p>
  231. <p class="big-text">Lamps Light Color</p>
  232. <p>Only from $209</p>',
  233. ],
  234. ],
  235. ],
  236. ],
  237. 'services' => [
  238. 'page' => [
  239. 'childService' => [
  240. 'theme' => [
  241. 'viewFileConfig' => [
  242. // 'catalog/category/index' => '@fecshop/app/appfront/theme/base/front/catalog/category/index.php',
  243. ],
  244. ],
  245. 'widget' => [
  246. 'widgetConfig' => [
  247. // config
  248. 'category' => [
  249. 'review_star' => [
  250. 'view' => 'catalog/product/index/review_star.php'
  251. ],
  252. 'toolbar_page' => [
  253. 'view' => 'catalog/category/index/toolbar_page.php',
  254. ],
  255. ],
  256. 'product' => [
  257. 'review_star' => [
  258. 'view' => 'catalog/product/index/review_star.php'
  259. ],
  260. ],
  261. 'search' => [
  262. 'toolbar_page' => [
  263. 'view' => 'catalog/category/index/toolbar_page.php',
  264. ],
  265. ],
  266. 'cms' => [
  267. 'product_floor' => [
  268. 'view' => 'cms/home/index/floor.php',
  269. ],
  270. ],
  271. ],
  272. ],
  273. ],
  274. ],
  275. ],
  276. ],
  277. ],
  278. ],
  279. ];